Skip to content

Commit

Permalink
stmtsummary: fix panic in stmts test (pingcap#41334)
Browse files Browse the repository at this point in the history
  • Loading branch information
Defined2014 authored and blacktear23 committed Feb 15, 2023
1 parent f823469 commit 4e5d6ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util/stmtsummary/v2/tests/table_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -515,9 +515,9 @@ func setupStmtSummary() {
}

func closeStmtSummary() {
stmtsummaryv2.GlobalStmtSummary.Close()
stmtsummaryv2.GlobalStmtSummary = nil
config.UpdateGlobal(func(conf *config.Config) {
conf.Instance.StmtSummaryEnablePersistent = false
})
stmtsummaryv2.GlobalStmtSummary.Close()
stmtsummaryv2.GlobalStmtSummary = nil
}

0 comments on commit 4e5d6ab

Please sign in to comment.