Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
rtree: move rtree from utils to pkg
Browse files Browse the repository at this point in the history
Signed-off-by: Neil Shen <overvenus@gmail.com>
  • Loading branch information
overvenus committed Feb 24, 2020
1 parent 9cc5029 commit 8810be1
Show file tree
Hide file tree
Showing 12 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion cmd/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ import (
"go.uber.org/zap"

"github.com/pingcap/br/pkg/restore"
"github.com/pingcap/br/pkg/rtree"
"github.com/pingcap/br/pkg/task"
"github.com/pingcap/br/pkg/utils"
"github.com/pingcap/br/pkg/utils/rtree"
)

// NewValidateCommand return a debug subcommand.
Expand Down
2 changes: 1 addition & 1 deletion pkg/backup/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ import (
"github.com/pingcap/tidb/util/ranger"
"go.uber.org/zap"

"github.com/pingcap/br/pkg/rtree"
"github.com/pingcap/br/pkg/storage"
"github.com/pingcap/br/pkg/summary"
"github.com/pingcap/br/pkg/utils"
"github.com/pingcap/br/pkg/utils/rtree"
)

// ClientMgr manages connections needed by backup.
Expand Down
2 changes: 1 addition & 1 deletion pkg/backup/push.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/pingcap/log"
"go.uber.org/zap"

"github.com/pingcap/br/pkg/utils/rtree"
"github.com/pingcap/br/pkg/rtree"
)

// pushDown warps a backup task.
Expand Down
2 changes: 1 addition & 1 deletion pkg/restore/range.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/pingcap/tidb/tablecodec"
"go.uber.org/zap"

"github.com/pingcap/br/pkg/utils/rtree"
"github.com/pingcap/br/pkg/rtree"
)

// sortRanges checks if the range overlapped and sort them
Expand Down
2 changes: 1 addition & 1 deletion pkg/restore/range_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/pingcap/kvproto/pkg/import_sstpb"
"github.com/pingcap/tidb/tablecodec"

"github.com/pingcap/br/pkg/utils/rtree"
"github.com/pingcap/br/pkg/rtree"
)

type testRangeSuite struct{}
Expand Down
2 changes: 1 addition & 1 deletion pkg/restore/split.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/pingcap/tidb/util/codec"
"go.uber.org/zap"

"github.com/pingcap/br/pkg/utils/rtree"
"github.com/pingcap/br/pkg/rtree"
)

// Constants for split retry machinery.
Expand Down
2 changes: 1 addition & 1 deletion pkg/restore/split_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/pingcap/pd/server/schedule/placement"
"github.com/pingcap/tidb/util/codec"

"github.com/pingcap/br/pkg/utils/rtree"
"github.com/pingcap/br/pkg/rtree"
)

type testClient struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/restore/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
"github.com/pingcap/tidb/util/codec"
"go.uber.org/zap"

"github.com/pingcap/br/pkg/rtree"
"github.com/pingcap/br/pkg/summary"
"github.com/pingcap/br/pkg/utils/rtree"
)

var recordPrefixSep = []byte("_r")
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion pkg/task/restore.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import (
"github.com/pingcap/br/pkg/conn"
"github.com/pingcap/br/pkg/glue"
"github.com/pingcap/br/pkg/restore"
"github.com/pingcap/br/pkg/rtree"
"github.com/pingcap/br/pkg/summary"
"github.com/pingcap/br/pkg/utils"
"github.com/pingcap/br/pkg/utils/rtree"
)

const (
Expand Down

0 comments on commit 8810be1

Please sign in to comment.