-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
137932: backup: move file sst sink to separate package r=msbutler a=kev-cao This patch moves `file_sst_sink` into its own package and exports a sink writer interface to facilitate writing to the sink. Doing so grants the flexibility to provide multiple methods of writing to the sink. Epic: none Release note: None Co-authored-by: Kevin Cao <[email protected]>
- Loading branch information
Showing
9 changed files
with
418 additions
and
339 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") | ||
|
||
go_library( | ||
name = "backupsink", | ||
srcs = [ | ||
"file_sst_sink.go", | ||
"sink_utils.go", | ||
], | ||
importpath = "github.com/cockroachdb/cockroach/pkg/backup/backupsink", | ||
visibility = ["//visibility:public"], | ||
deps = [ | ||
"//pkg/backup/backuppb", | ||
"//pkg/base", | ||
"//pkg/ccl/storageccl", | ||
"//pkg/cloud", | ||
"//pkg/keys", | ||
"//pkg/kv/kvpb", | ||
"//pkg/roachpb", | ||
"//pkg/settings", | ||
"//pkg/sql/execinfrapb", | ||
"//pkg/sql/sem/builtins", | ||
"//pkg/storage", | ||
"//pkg/util/admission", | ||
"//pkg/util/hlc", | ||
"//pkg/util/log", | ||
"@com_github_cockroachdb_errors//:errors", | ||
"@com_github_gogo_protobuf//types", | ||
"@com_github_kr_pretty//:pretty", | ||
], | ||
) | ||
|
||
go_test( | ||
name = "backupsink_test", | ||
srcs = ["file_sst_sink_test.go"], | ||
embed = [":backupsink"], | ||
deps = [ | ||
"//pkg/backup/backuppb", | ||
"//pkg/ccl/storageccl", | ||
"//pkg/cloud", | ||
"//pkg/cloud/cloudpb", | ||
"//pkg/cloud/nodelocal", | ||
"//pkg/keys", | ||
"//pkg/roachpb", | ||
"//pkg/settings/cluster", | ||
"//pkg/sql/execinfrapb", | ||
"//pkg/storage", | ||
"//pkg/util/encoding", | ||
"//pkg/util/hlc", | ||
"//pkg/util/leaktest", | ||
"//pkg/util/log", | ||
"@com_github_cockroachdb_errors//:errors", | ||
"@com_github_gogo_protobuf//types", | ||
"@com_github_stretchr_testify//require", | ||
], | ||
) |
Oops, something went wrong.