Skip to content

Commit

Permalink
support lightning remote backend (pingcap#311)
Browse files Browse the repository at this point in the history
* support lightning remote backend

Cherry-pick tidbcloud/tidb-cse#213

* fix encoder

* use codec to encode key.

* encode keyspace directly in AppendRows

* fix bazel

* revert change

* delete engineUUID

---------

Co-authored-by: zzm <[email protected]>
  • Loading branch information
coocood and zeminzhou authored Mar 13, 2023
1 parent 43df1e2 commit d05a1e2
Show file tree
Hide file tree
Showing 7 changed files with 528 additions and 2 deletions.
28 changes: 28 additions & 0 deletions br/pkg/lightning/backend/remote/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
load("@io_bazel_rules_go//go:def.bzl", "go_library")

go_library(
name = "remote",
srcs = ["remote.go"],
importpath = "github.com/pingcap/tidb/br/pkg/lightning/backend/remote",
visibility = ["//visibility:public"],
deps = [
"//br/pkg/lightning/backend",
"//br/pkg/lightning/backend/kv",
"//br/pkg/lightning/backend/local",
"//br/pkg/lightning/checkpoints",
"//br/pkg/lightning/common",
"//br/pkg/lightning/config",
"//br/pkg/lightning/glue",
"//br/pkg/lightning/log",
"//br/pkg/lightning/metric",
"//br/pkg/pdutil",
"//parser/model",
"//table",
"@com_github_google_uuid//:uuid",
"@com_github_pingcap_errors//:errors",
"@com_github_tikv_client_go_v2//oracle",
"@com_github_tikv_client_go_v2//tikv",
"@org_uber_go_atomic//:atomic",
"@org_uber_go_zap//:zap",
],
)
Loading

0 comments on commit d05a1e2

Please sign in to comment.