Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
Signed-off-by: you06 <you1474600@gmail.com>
  • Loading branch information
you06 committed Dec 20, 2022
1 parent 1d9e469 commit a9d73bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions store/copr/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ go_library(
"@com_github_pingcap_errors//:errors",
"@com_github_pingcap_failpoint//:failpoint",
"@com_github_pingcap_kvproto//pkg/coprocessor",
"@com_github_pingcap_kvproto//pkg/errorpb",
"@com_github_pingcap_kvproto//pkg/kvrpcpb",
"@com_github_pingcap_kvproto//pkg/metapb",
"@com_github_pingcap_kvproto//pkg/mpp",
Expand Down
4 changes: 3 additions & 1 deletion store/mockstore/unistore/tikv/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,9 @@ func (svr *Server) StoreBatchCoprocessor(ctx context.Context, req *coprocessor.R
}
taskReq := &coprocessor.Request{}
// deep clone req
taskReq.Unmarshal(bytes)
if err = taskReq.Unmarshal(bytes); err != nil {
return
}
taskReq.Tasks = nil
taskReq.IsCacheEnabled = false
taskReq.Ranges = task.Ranges
Expand Down

0 comments on commit a9d73bb

Please sign in to comment.