From 6fbe2b936c9780e9c094553932aac4d02708033e Mon Sep 17 00:00:00 2001 From: "Jeff Washington (jwash)" Date: Mon, 11 Apr 2022 18:53:45 -0500 Subject: [PATCH] fix comment (#24254) --- runtime/src/accounts_db.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/runtime/src/accounts_db.rs b/runtime/src/accounts_db.rs index 48b8af051..7040fe369 100644 --- a/runtime/src/accounts_db.rs +++ b/runtime/src/accounts_db.rs @@ -4761,9 +4761,8 @@ impl AccountsDb { // Regardless of whether this slot was *just* flushed from the cache by the above // `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 can occur for instance when: - // 1) The cache is overwhelmed, we we flushed some yet to be rooted frozen slots - // 2) Random evictions + // This can occur for instance when + // the cache is overwhelmed, we flushed some yet to be rooted frozen slots // These slots may then *later* be marked as root, so we still need to handle updating the // `max_flush_root` in the accounts cache. self.accounts_cache.set_max_flush_root(root);