fix comment (#24254)
This commit is contained in:
parent
77f9f7cd60
commit
6fbe2b936c
|
@ -4761,9 +4761,8 @@ impl AccountsDb {
|
||||||
// Regardless of whether this slot was *just* flushed from the cache by the above
|
// Regardless of whether this slot was *just* flushed from the cache by the above
|
||||||
// `flush_slot_cache()`, we should update the `max_flush_root`.
|
// `flush_slot_cache()`, we should update the `max_flush_root`.
|
||||||
// This is because some rooted slots may be flushed to storage *before* they are marked as root.
|
// This is because some rooted slots may be flushed to storage *before* they are marked as root.
|
||||||
// This can occur for instance when:
|
// This can occur for instance when
|
||||||
// 1) The cache is overwhelmed, we we flushed some yet to be rooted frozen slots
|
// the cache is overwhelmed, we flushed some yet to be rooted frozen slots
|
||||||
// 2) Random evictions
|
|
||||||
// These slots may then *later* be marked as root, so we still need to handle updating the
|
// These slots may then *later* be marked as root, so we still need to handle updating the
|
||||||
// `max_flush_root` in the accounts cache.
|
// `max_flush_root` in the accounts cache.
|
||||||
self.accounts_cache.set_max_flush_root(root);
|
self.accounts_cache.set_max_flush_root(root);
|
||||||
|
|
Loading…
Reference in New Issue