Skip to content

Commit

Permalink
This is an automated cherry-pick of pingcap#52658
Browse files Browse the repository at this point in the history
Signed-off-by: ti-chi-bot <[email protected]>
  • Loading branch information
hawkingrei committed Jun 5, 2024
1 parent 18c7f08 commit b9ef08c
Show file tree
Hide file tree
Showing 4 changed files with 1,178 additions and 0 deletions.
46 changes: 46 additions & 0 deletions pkg/statistics/handle/syncload/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")

go_library(
name = "syncload",
srcs = ["stats_syncload.go"],
importpath = "github.com/pingcap/tidb/pkg/statistics/handle/syncload",
visibility = ["//visibility:public"],
deps = [
"//pkg/config",
"//pkg/metrics",
"//pkg/parser/model",
"//pkg/parser/mysql",
"//pkg/sessionctx",
"//pkg/sessionctx/stmtctx",
"//pkg/statistics",
"//pkg/statistics/handle/storage",
"//pkg/statistics/handle/types",
"//pkg/types",
"//pkg/util",
"//pkg/util/logutil",
"@com_github_pingcap_errors//:errors",
"@com_github_pingcap_failpoint//:failpoint",
"@org_uber_go_zap//:zap",
],
)

go_test(
name = "syncload_test",
timeout = "short",
srcs = ["stats_syncload_test.go"],
flaky = True,
race = "on",
shard_count = 5,
deps = [
":syncload",
"//pkg/config",
"//pkg/parser/model",
"//pkg/sessionctx",
"//pkg/sessionctx/stmtctx",
"//pkg/statistics/handle/types",
"//pkg/testkit",
"//pkg/util/mathutil",
"@com_github_pingcap_failpoint//:failpoint",
"@com_github_stretchr_testify//require",
],
)
Loading

0 comments on commit b9ef08c

Please sign in to comment.