Skip to content

Commit

Permalink
correct the debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
winoros committed Dec 3, 2024
1 parent 9c43a95 commit a2a418e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/statistics/handle/storage/stats_read_writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ func (s *statsReadWriter) TableStatsFromStorage(tableInfo *model.TableInfo, phys
var ok bool
statsTbl, ok = s.statsHandler.Get(physicalID)
if !ok {
err = errors.Errorf("Didn't found stats in memory")
statsTbl = nil
return errors.Errorf("Didn't found stats in memory")
}
statsTbl, err = TableStatsFromStorage(sctx, snapshot, tableInfo, physicalID, loadAll, s.statsHandler.Lease(), statsTbl)
return err
Expand Down

0 comments on commit a2a418e

Please sign in to comment.