Skip to content

Commit

Permalink
planner: remove unused Auto Capture (#58373)
Browse files Browse the repository at this point in the history
ref #51347
  • Loading branch information
qw4990 authored Dec 18, 2024
1 parent f05cbdd commit aa19d3f
Show file tree
Hide file tree
Showing 12 changed files with 3 additions and 1,420 deletions.
13 changes: 1 addition & 12 deletions pkg/bindinfo/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ go_library(
"binding.go",
"binding_cache.go",
"binding_match.go",
"capture.go",
"global_handle.go",
"session_handle.go",
"util.go",
Expand All @@ -26,7 +25,6 @@ go_library(
"//pkg/planner/core/resolve",
"//pkg/sessionctx",
"//pkg/sessionctx/sessionstates",
"//pkg/sessionctx/stmtctx",
"//pkg/sessionctx/variable",
"//pkg/types",
"//pkg/types/parser_driver",
Expand All @@ -40,9 +38,7 @@ go_library(
"//pkg/util/memory",
"//pkg/util/parser",
"//pkg/util/sqlexec",
"//pkg/util/stmtsummary/v2:stmtsummary",
"//pkg/util/stringutil",
"//pkg/util/table-filter",
"@com_github_pingcap_errors//:errors",
"@com_github_pingcap_failpoint//:failpoint",
"@com_github_pkg_errors//:errors",
Expand All @@ -57,7 +53,6 @@ go_test(
srcs = [
"binding_cache_test.go",
"binding_match_test.go",
"capture_test.go",
"fuzzy_binding_test.go",
"global_handle_test.go",
"main_test.go",
Expand All @@ -67,18 +62,14 @@ go_test(
embed = [":bindinfo"],
flaky = True,
race = "on",
shard_count = 50,
shard_count = 33,
deps = [
"//pkg/bindinfo/internal",
"//pkg/bindinfo/norm",
"//pkg/config",
"//pkg/domain",
"//pkg/meta/model",
"//pkg/parser",
"//pkg/parser/ast",
"//pkg/parser/auth",
"//pkg/parser/format",
"//pkg/parser/model",
"//pkg/parser/mysql",
"//pkg/server",
"//pkg/session/types",
Expand All @@ -88,12 +79,10 @@ go_test(
"//pkg/types",
"//pkg/util",
"//pkg/util/hack",
"//pkg/util/parser",
"//pkg/util/stmtsummary",
"@com_github_ngaut_pools//:pools",
"@com_github_pingcap_failpoint//:failpoint",
"@com_github_stretchr_testify//require",
"@io_opencensus_go//stats/view",
"@org_uber_go_goleak//:goleak",
],
)
2 changes: 0 additions & 2 deletions pkg/bindinfo/binding.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ const (
deleted = "deleted"
// Manual indicates the binding is created by SQL like "create binding for ...".
Manual = "manual"
// Capture indicates the binding is captured by TiDB automatically.
Capture = "capture"
// Builtin indicates the binding is a builtin record for internal locking purpose. It is also the status for the builtin binding.
Builtin = "builtin"
// History indicate the binding is created from statement summary by plan digest
Expand Down
202 changes: 0 additions & 202 deletions pkg/bindinfo/capture.go

This file was deleted.

Loading

0 comments on commit aa19d3f

Please sign in to comment.