Skip to content

Commit

Permalink
*: tiny update
Browse files Browse the repository at this point in the history
  • Loading branch information
zimulala committed Sep 10, 2024
1 parent e652c73 commit 2dc27ab
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2717,6 +2717,8 @@ func (cli *testServerClient) runTestIssue53634(t *testing.T, ts *tidbTestSuite,
}, "MDL", func(dbt *testkit.DBTestKit) {
ctx := context.Background()

variable.EnableMDL.Store(true)
t.Logf("set enable mdl:%v", variable.EnableMDL.Load())
conn, err := dbt.GetDB().Conn(ctx)
require.NoError(t, err)
MustExec(ctx, t, conn, "set global tidb_enable_metadata_lock=1")
Expand Down
5 changes: 5 additions & 0 deletions server/tidb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3331,5 +3331,10 @@ func TestIssue53634(t *testing.T) {
cfg.Status.StatusPort = 10088
ts := createTidbTestSuiteWithCfg(t, cfg)

se, err := session.CreateSession4Test(ts.store)
require.NoError(t, err)
_, err = se.Execute(context.Background(), "set global tidb_enable_metadata_lock=0")
require.NoError(t, err)

ts.runTestIssue53634(t, ts, ts.domain)
}

0 comments on commit 2dc27ab

Please sign in to comment.