use the txf to determine if snapshots are needed

This commit is contained in:
Nia Weiss 2020-12-16 11:00:27 -05:00
parent aaf94c6aeb
commit eab70e2314
No known key found for this signature in database
GPG key ID: 895E83409BFDA1BB

View file

@ -783,7 +783,7 @@ func (h *Holder) NeedsSnapshot() bool {
h.mu.RLock()
defer h.mu.RUnlock()
return h.cfg.Txsrc == "roaring"
return h.txf.NeedsSnapshot()
}
// HasData returns true if Holder contains at least one index.