Skip to content

Commit

Permalink
remove redundant page_align (solana-labs#33608)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffwashington authored Oct 10, 2023
1 parent 42b63a0 commit 6c7d3c8
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 6c7d3c8

Please sign in to comment.