Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: yisaer <[email protected]>
  • Loading branch information
Yisaer committed Jun 6, 2022
1 parent b860500 commit 6241de9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion statistics/histogram.go
Original file line number Diff line number Diff line change
Expand Up @@ -1338,7 +1338,12 @@ func (idx *Index) DropEvicted() {

// IsEvicted returns whether index statistics got evicted
func (idx *Index) IsEvicted() bool {
return idx.CMSketch == nil
switch idx.StatsVer {
case Version1:
return idx.CMSketch == nil
default:
return false
}
}

func (idx *Index) String() string {
Expand Down

0 comments on commit 6241de9

Please sign in to comment.