Use option for account index bucket parameter (#19150)
This commit is contained in:
committed by
GitHub
parent
8557dac51d
commit
651343688d
@@ -726,7 +726,7 @@ pub fn bank_from_snapshot_archives(
|
||||
test_hash_calculation: bool,
|
||||
accounts_db_skip_shrink: bool,
|
||||
verify_index: bool,
|
||||
accounts_index_bins: usize,
|
||||
accounts_index_bins: Option<usize>,
|
||||
) -> Result<(Bank, BankFromArchiveTimings)> {
|
||||
check_are_snapshots_compatible(
|
||||
full_snapshot_archive_info,
|
||||
@@ -833,7 +833,7 @@ pub fn bank_from_latest_snapshot_archives(
|
||||
test_hash_calculation: bool,
|
||||
accounts_db_skip_shrink: bool,
|
||||
verify_index: bool,
|
||||
accounts_index_bins: usize,
|
||||
accounts_index_bins: Option<usize>,
|
||||
) -> Result<(Bank, BankFromArchiveTimings)> {
|
||||
let full_snapshot_archive_info = get_highest_full_snapshot_archive_info(&snapshot_archives_dir)
|
||||
.ok_or(SnapshotError::NoSnapshotArchives)?;
|
||||
@@ -1371,7 +1371,7 @@ fn rebuild_bank_from_snapshots(
|
||||
limit_load_slot_count_from_snapshot: Option<usize>,
|
||||
shrink_ratio: AccountShrinkThreshold,
|
||||
verify_index: bool,
|
||||
accounts_index_bins: usize,
|
||||
accounts_index_bins: Option<usize>,
|
||||
) -> Result<Bank> {
|
||||
let (full_snapshot_version, full_snapshot_root_paths) =
|
||||
verify_unpacked_snapshots_dir_and_version(
|
||||
@@ -2490,7 +2490,7 @@ mod tests {
|
||||
false,
|
||||
false,
|
||||
false,
|
||||
crate::accounts_index::BINS_FOR_TESTING,
|
||||
Some(crate::accounts_index::BINS_FOR_TESTING),
|
||||
)
|
||||
.unwrap();
|
||||
|
||||
@@ -2581,7 +2581,7 @@ mod tests {
|
||||
false,
|
||||
false,
|
||||
false,
|
||||
crate::accounts_index::BINS_FOR_TESTING,
|
||||
Some(crate::accounts_index::BINS_FOR_TESTING),
|
||||
)
|
||||
.unwrap();
|
||||
|
||||
@@ -2691,7 +2691,7 @@ mod tests {
|
||||
false,
|
||||
false,
|
||||
false,
|
||||
crate::accounts_index::BINS_FOR_TESTING,
|
||||
Some(crate::accounts_index::BINS_FOR_TESTING),
|
||||
)
|
||||
.unwrap();
|
||||
|
||||
@@ -2790,7 +2790,7 @@ mod tests {
|
||||
false,
|
||||
false,
|
||||
false,
|
||||
crate::accounts_index::BINS_FOR_TESTING,
|
||||
Some(crate::accounts_index::BINS_FOR_TESTING),
|
||||
)
|
||||
.unwrap();
|
||||
|
||||
|
Reference in New Issue
Block a user