Skip to content

Commit

Permalink
migration: rework migration subsystem into multiple packages
Browse files Browse the repository at this point in the history
No tests were harmed in this commit. Some abstractions which felt like cruft
were thinned.

Release note: None
  • Loading branch information
ajwerner committed Feb 10, 2021
1 parent 355fe0b commit 126ea38
Show file tree
Hide file tree
Showing 27 changed files with 1,435 additions and 1,158 deletions.
57 changes: 3 additions & 54 deletions pkg/migration/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,70 +1,19 @@
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
load("@io_bazel_rules_go//go:def.bzl", "go_library")

go_library(
name = "migration",
srcs = [
"helper.go",
"manager.go",
"migrations.go",
"util.go",
"helpers.go",
"migration.go",
],
importpath = "github.com/cockroachdb/cockroach/pkg/migration",
visibility = ["//visibility:public"],
deps = [
"//pkg/clusterversion",
"//pkg/keys",
"//pkg/kv",
"//pkg/kv/kvserver/liveness/livenesspb",
"//pkg/roachpb",
"//pkg/rpc",
"//pkg/rpc/nodedialer",
"//pkg/server/serverpb",
"//pkg/sql",
"//pkg/sql/sqlutil",
"//pkg/util/ctxgroup",
"//pkg/util/log",
"//pkg/util/quotapool",
"@com_github_cockroachdb_errors//:errors",
"@com_github_cockroachdb_logtags//:logtags",
"@com_github_cockroachdb_redact//:redact",
"@org_golang_google_grpc//:go_default_library",
],
)

go_test(
name = "migration_test",
srcs = [
"client_test.go",
"helper_test.go",
"main_test.go",
"migrations_test.go",
"util_test.go",
],
embed = [":migration"],
deps = [
"//pkg/base",
"//pkg/clusterversion",
"//pkg/kv",
"//pkg/kv/kvserver",
"//pkg/kv/kvserver/batcheval",
"//pkg/kv/kvserver/liveness",
"//pkg/kv/kvserver/liveness/livenesspb",
"//pkg/kv/kvserver/stateloader",
"//pkg/roachpb",
"//pkg/security",
"//pkg/security/securitytest",
"//pkg/server",
"//pkg/server/serverpb",
"//pkg/settings/cluster",
"//pkg/sql/tests",
"//pkg/testutils",
"//pkg/testutils/serverutils",
"//pkg/testutils/testcluster",
"//pkg/util/leaktest",
"//pkg/util/log",
"//pkg/util/syncutil",
"@com_github_cockroachdb_errors//:errors",
"@com_github_stretchr_testify//require",
"@org_golang_google_grpc//:go_default_library",
],
)
312 changes: 0 additions & 312 deletions pkg/migration/helper.go

This file was deleted.

Loading

0 comments on commit 126ea38

Please sign in to comment.