Skip to content

Commit

Permalink
stmtsummary: fix panic in stmts test (#41334)
Browse files Browse the repository at this point in the history
close #41315
  • Loading branch information
Defined2014 authored Feb 13, 2023
1 parent 558813a commit 5f61ded
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 5f61ded

Please sign in to comment.