cli for num account index bins (#19085)

This commit is contained in:
Jeff Washington (jwash)
2021-08-11 11:45:25 -05:00
committed by GitHub
parent 3bdadb3930
commit e91988c977
8 changed files with 44 additions and 6 deletions

View File

@ -132,7 +132,7 @@ fn load_from_snapshot(
process_options.accounts_db_test_hash_calculation,
process_options.accounts_db_skip_shrink,
process_options.verify_index,
None,
process_options.accounts_index_bins,
)
.expect("Load from snapshot failed");

View File

@ -385,6 +385,7 @@ pub struct ProcessOptions {
pub allow_dead_slots: bool,
pub accounts_db_test_hash_calculation: bool,
pub accounts_db_skip_shrink: bool,
pub accounts_index_bins: Option<usize>,
pub verify_index: bool,
pub shrink_ratio: AccountShrinkThreshold,
}
@ -416,7 +417,7 @@ pub fn process_blockstore(
opts.accounts_db_caching_enabled,
opts.shrink_ratio,
false,
None, // later, this will be passed from ProcessOptions
opts.accounts_index_bins,
);
let bank0 = Arc::new(bank0);
info!("processing ledger for slot 0...");