Skip to content

Commit 046b52a

Browse files
authored
statistics: fix the wrong comments (#48183)
1 parent 733b10b commit 046b52a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

pkg/statistics/handle/storage/stats_read_writer.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,8 @@ func (s *statsReadWriter) ChangeGlobalStatsID(from, to int64) (err error) {
161161
}, util.FlagWrapTxn)
162162
}
163163

164-
// ResetTableStats2KVForDrop resets the count to 0.
164+
// ResetTableStats2KVForDrop update the version of mysql.stats_meta.
165+
// Then GC worker will delete the old version of stats.
165166
func (s *statsReadWriter) ResetTableStats2KVForDrop(physicalID int64) (err error) {
166167
statsVer := uint64(0)
167168
defer func() {

pkg/statistics/handle/util/interfaces.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,8 @@ type StatsReadWriter interface {
252252
// then tidb-server will reload automatic.
253253
UpdateStatsVersion() error
254254

255-
// ResetTableStats2KVForDrop resets the count to 0.
255+
// ResetTableStats2KVForDrop update the version of mysql.stats_meta.
256+
// Then GC worker will delete the old version of stats.
256257
ResetTableStats2KVForDrop(physicalID int64) (err error)
257258

258259
// ChangeGlobalStatsID changes the global stats ID.

0 commit comments

Comments
 (0)