We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5c8abc commit 1a66b46Copy full SHA for 1a66b46
collect/cache/cuckoo.go
@@ -206,7 +206,7 @@ func (c *CuckooTraceChecker) Maintain() {
206
c.mut.RUnlock()
207
208
// once the current one is half loaded, we can start using the future one too
209
- if futureLoadFactor != 0 && currentLoadFactor > 0.5 {
+ if futureLoadFactor == 0 && currentLoadFactor > 0.5 {
210
c.mut.Lock()
211
c.future = cuckoo.NewFilter(c.capacity)
212
c.mut.Unlock()
0 commit comments