Skip to content

Commit

Permalink
stmtsummary: fix panic in test
Browse files Browse the repository at this point in the history
  • Loading branch information
Defined2014 committed Feb 13, 2023
1 parent 79ae1e3 commit 7b20b1c
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 7b20b1c

Please sign in to comment.