Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: Weizhen Wang <wangweizhen@pingcap.com>
  • Loading branch information
hawkingrei committed Nov 9, 2023
1 parent 77ecaa2 commit f7fac14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/statistics/handle/storage/gc.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,9 @@ func ClearOutdatedHistoryStats(sctx sessionctx.Context) error {
for n := int64(0); n < forCount(count, int64(50)); n++ {
sql = "delete from mysql.stats_history use index (idx_create_time) where create_time <= NOW() - INTERVAL %? SECOND limit 50 "
_, err = util.Exec(sctx, sql, variable.HistoricalStatsDuration.Load().Seconds())
logutil.BgLogger().Info("clear outdated historical stats")
return err
}
logutil.BgLogger().Info("clear outdated historical stats")
}
return nil
}
Expand Down

0 comments on commit f7fac14

Please sign in to comment.