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 1a66b46 commit b53cf29Copy full SHA for b53cf29
collect/cache/cuckoo.go
@@ -208,7 +208,9 @@ func (c *CuckooTraceChecker) Maintain() {
208
// once the current one is half loaded, we can start using the future one too
209
if futureLoadFactor == 0 && currentLoadFactor > 0.5 {
210
c.mut.Lock()
211
- c.future = cuckoo.NewFilter(c.capacity)
+ if c.future == nil {
212
+ c.future = cuckoo.NewFilter(c.capacity)
213
+ }
214
c.mut.Unlock()
215
}
216
0 commit comments