Skip to content

Commit

Permalink
Problem: ESTIMATE mark stops snapshot iteration too early
Browse files Browse the repository at this point in the history
Solution:
- ignore estimate mark but keep the iteration.
  • Loading branch information
yihuang committed Aug 6, 2024
1 parent 9f11af1 commit 95d8f27
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mvdata.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,8 @@ func (d *GMVData[V]) SnapshotTo(cb func(Key, V) bool) {
}

if item.Estimate {
return true
// ignore ESTIMATE mark
return false
}

return cb(outer.Key, item.Value)
Expand Down

0 comments on commit 95d8f27

Please sign in to comment.