Skip to content

Commit

Permalink
rebase to master
Browse files Browse the repository at this point in the history
  • Loading branch information
3pointer committed Mar 9, 2022
1 parent e4c3307 commit 88cedcc
Show file tree
Hide file tree
Showing 7 changed files with 299 additions and 283 deletions.
2 changes: 1 addition & 1 deletion br/pkg/restore/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ func (rc *Client) createTables(
table.Info.IsCommonHandle,
newTableInfo.IsCommonHandle)
}
rules := GetRewriteRules(newTableInfo, table.Info, newTS)
rules := GetRewriteRules(newTableInfo, table.Info, newTS, true)
ct := CreatedTable{
RewriteRule: rules,
Table: newTableInfo,
Expand Down
2 changes: 1 addition & 1 deletion br/pkg/stream/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
berrors "github.com/pingcap/tidb/br/pkg/errors"
"github.com/pingcap/tidb/br/pkg/redact"
"github.com/pingcap/tidb/kv"
"go.etcd.io/etcd/clientv3"
"go.etcd.io/etcd/client/v3"
)

// MetaDataClient is the client for operations over metadata.
Expand Down
6 changes: 3 additions & 3 deletions br/pkg/stream/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ import (
"github.com/pingcap/tidb/tablecodec"
"github.com/stretchr/testify/require"
"github.com/tikv/client-go/v2/kv"
"go.etcd.io/etcd/clientv3"
"go.etcd.io/etcd/embed"
"go.etcd.io/etcd/mvcc"
"go.etcd.io/etcd/client/v3"
"go.etcd.io/etcd/server/v3/embed"
"go.etcd.io/etcd/server/v3/mvcc"
)

func getRandomLocalAddr() url.URL {
Expand Down
2 changes: 1 addition & 1 deletion br/pkg/stream/prefix_scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/pingcap/tidb/br/pkg/redact"
"github.com/pingcap/tidb/kv"
kvutil "github.com/tikv/client-go/v2/kv"
"go.etcd.io/etcd/clientv3"
"go.etcd.io/etcd/client/v3"
)

// etcdSource is the adapter for etcd client and the `Source` interface.
Expand Down
2 changes: 0 additions & 2 deletions br/pkg/task/stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,6 @@ func NewStreamMgr(ctx context.Context, cfg *StreamConfig, g glue.Glue, needStora
opts := storage.ExternalStorageOptions{
NoCredentials: cfg.NoCreds,
SendCredentials: cfg.SendCreds,
SkipCheckPath: cfg.SkipCheckPath,
}
client, err := backup.NewBackupClient(ctx, mgr)
if err != nil {
Expand Down Expand Up @@ -624,7 +623,6 @@ func RunStreamRestore(
opts := storage.ExternalStorageOptions{
NoCredentials: cfg.NoCreds,
SendCredentials: cfg.SendCreds,
SkipCheckPath: cfg.SkipCheckPath,
}

if err = client.SetStorage(ctx, u, &opts); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,4 @@ replace github.com/pingcap/tidb/parser => ./parser
// fix potential security issue(CVE-2020-26160) introduced by indirect dependency.
replace github.com/dgrijalva/jwt-go => github.com/form3tech-oss/jwt-go v3.2.6-0.20210809144907-32ab6a8243d7+incompatible

replace github.com/pingcap/kvproto => github.com/pingcap/kvproto v0.0.0-20220211054355-f7a5a196e629
replace github.com/pingcap/kvproto => github.com/pingcap/kvproto v0.0.0-20220222060450-3c677934c555
566 changes: 292 additions & 274 deletions go.sum

Large diffs are not rendered by default.

0 comments on commit 88cedcc

Please sign in to comment.