Skip to content

Commit

Permalink
statistics: fix the wrong comments (#48183)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rustin170506 authored Nov 1, 2023
1 parent 733b10b commit 046b52a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pkg/statistics/handle/storage/stats_read_writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ func (s *statsReadWriter) ChangeGlobalStatsID(from, to int64) (err error) {
}, util.FlagWrapTxn)
}

// ResetTableStats2KVForDrop resets the count to 0.
// ResetTableStats2KVForDrop update the version of mysql.stats_meta.
// Then GC worker will delete the old version of stats.
func (s *statsReadWriter) ResetTableStats2KVForDrop(physicalID int64) (err error) {
statsVer := uint64(0)
defer func() {
Expand Down
3 changes: 2 additions & 1 deletion pkg/statistics/handle/util/interfaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,8 @@ type StatsReadWriter interface {
// then tidb-server will reload automatic.
UpdateStatsVersion() error

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

// ChangeGlobalStatsID changes the global stats ID.
Expand Down

0 comments on commit 046b52a

Please sign in to comment.