Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "stop padding new append vecs to page size (#33607)" #33634

Merged
merged 1 commit into from
Oct 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions accounts-db/src/accounts_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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: {:?}",
Expand Down Expand Up @@ -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",
);
}
Expand Down