accounts_index_bins to AccountsIndexConfig (#19257)
* accounts_index_bins to AccountsIndexConfig * rename param bins -> config * rename BINS_FOR* to ACCOUNTS_INDEX_CONFIG_FOR*
This commit is contained in:
committed by
GitHub
parent
2c648cc6b6
commit
7c70f2158b
@ -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,
|
||||
process_options.accounts_index_bins,
|
||||
process_options.accounts_index_config,
|
||||
)
|
||||
.expect("Load from snapshot failed");
|
||||
|
||||
|
@ -17,7 +17,7 @@ use solana_metrics::{datapoint_error, inc_new_counter_debug};
|
||||
use solana_rayon_threadlimit::get_thread_count;
|
||||
use solana_runtime::{
|
||||
accounts_db::AccountShrinkThreshold,
|
||||
accounts_index::AccountSecondaryIndexes,
|
||||
accounts_index::{AccountSecondaryIndexes, AccountsIndexConfig},
|
||||
bank::{
|
||||
Bank, ExecuteTimings, InnerInstructionsList, RentDebits, TransactionBalancesSet,
|
||||
TransactionExecutionResult, TransactionLogMessages, TransactionResults,
|
||||
@ -461,7 +461,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 accounts_index_config: Option<AccountsIndexConfig>,
|
||||
pub verify_index: bool,
|
||||
pub shrink_ratio: AccountShrinkThreshold,
|
||||
}
|
||||
@ -493,7 +493,7 @@ pub fn process_blockstore(
|
||||
opts.accounts_db_caching_enabled,
|
||||
opts.shrink_ratio,
|
||||
false,
|
||||
opts.accounts_index_bins,
|
||||
opts.accounts_index_config,
|
||||
);
|
||||
let bank0 = Arc::new(bank0);
|
||||
info!("processing ledger for slot 0...");
|
||||
|
Reference in New Issue
Block a user