Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Rustin170506 committed Jul 5, 2024
1 parent ba34df6 commit 175a799
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/statistics/handle/cache/statscache.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func (s *StatsCacheImpl) Update(is infoschema.InfoSchema) error {
// but because the predicate columns feature is turned on, and it doesn't have any columns or indexes analyzed,
// it only analyzes _row_id and refreshes stats_meta, in which case the snapshot is not zero.
// 2. LastAnalyzeVersion is 0 because it has never been loaded.
// In this case, we can initialise LastAnalyzeVersion to a snapshot,
// In this case, we can initialize LastAnalyzeVersion to a snapshot,
// otherwise auto-analyze will think that the table has never been analyzed and try to analyze it again.
if tbl.LastAnalyzeVersion == 0 && snapshot != 0 {
tbl.LastAnalyzeVersion = snapshot
Expand Down

0 comments on commit 175a799

Please sign in to comment.