From 982d29cf60d6b1ee4607035fd571974eb5ed07b5 Mon Sep 17 00:00:00 2001 From: steviez Date: Tue, 10 Oct 2023 14:43:52 -0500 Subject: [PATCH] Revert "stop padding new append vecs to page size (#33607)" (#33634) This reverts commit b7962a3610b9beec2bfe660622a31fc8e34c1cd3. --- accounts-db/src/accounts_db.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/accounts-db/src/accounts_db.rs b/accounts-db/src/accounts_db.rs index d37fcf655d74f5..8bfeb3fb289b85 100644 --- a/accounts-db/src/accounts_db.rs +++ b/accounts-db/src/accounts_db.rs @@ -5733,7 +5733,11 @@ impl AccountsDb { .create_store_count .fetch_add(1, Ordering::Relaxed); let path_index = thread_rng().gen_range(0..paths.len()); - let store = Arc::new(self.new_storage_entry(slot, Path::new(&paths[path_index]), size)); + let store = Arc::new(self.new_storage_entry( + slot, + Path::new(&paths[path_index]), + Self::page_align(size), + )); debug!( "creating store: {} slot: {} len: {} size: {} from: {} path: {:?}", @@ -9909,7 +9913,7 @@ pub mod test_utils { // allocate an append vec for this slot that can hold all the test accounts. This prevents us from creating more than 1 append vec for this slot. _ = accounts.accounts_db.create_and_insert_store( slot, - AccountsDb::page_align(bytes_required as u64), + bytes_required as u64, "create_test_accounts", ); }