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

Commit

Permalink
restore: replace pd/pkg/codec with tidb/util/codec
Browse files Browse the repository at this point in the history
Signed-off-by: Neil Shen <[email protected]>
  • Loading branch information
overvenus committed Jan 7, 2020
1 parent 5abe20f commit b4ba91e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/restore/import.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"github.com/pingcap/kvproto/pkg/import_sstpb"
"github.com/pingcap/kvproto/pkg/kvrpcpb"
"github.com/pingcap/log"
"github.com/pingcap/pd/pkg/codec"
restore_util "github.com/pingcap/tidb-tools/pkg/restore-util"
"github.com/pingcap/tidb/util/codec"
"go.uber.org/zap"
"google.golang.org/grpc"

Expand Down Expand Up @@ -264,7 +264,7 @@ func (importer *FileImporter) downloadSST(
return nil, true, errors.Trace(err)
}
// Assume one region reflects to one rewrite rule
_, key, err := codec.DecodeBytes(regionInfo.Region.GetStartKey())
_, key, err := codec.DecodeBytes(regionInfo.Region.GetStartKey(), []byte{})
if err != nil {
return nil, true, err
}
Expand Down

0 comments on commit b4ba91e

Please sign in to comment.