Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
remove redundant page_align
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffwashington committed Oct 9, 2023
1 parent 4c664a8 commit c62e488
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions accounts-db/src/accounts_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6597,12 +6597,10 @@ impl AccountsDb {
);

if !is_dead_slot {
let aligned_total_size = Self::page_align(total_size);
// This ensures that all updates are written to an AppendVec, before any
// updates to the index happen, so anybody that sees a real entry in the index,
// will be able to find the account in storage
let flushed_store =
self.create_and_insert_store(slot, aligned_total_size, "flush_slot_cache");
let flushed_store = self.create_and_insert_store(slot, total_size, "flush_slot_cache");
// irrelevant - account will already be hashed since it was used in bank hash previously
let include_slot_in_hash = IncludeSlotInHash::IrrelevantAssertOnUse;
self.store_accounts_frozen(
Expand Down

0 comments on commit c62e488

Please sign in to comment.