diff --git a/core/src/validator.rs b/core/src/validator.rs index 6f96109c1b..5ba4f1bdcc 100644 --- a/core/src/validator.rs +++ b/core/src/validator.rs @@ -1171,7 +1171,7 @@ fn new_banks_from_ledger( debug_keys: config.debug_keys.clone(), account_indexes: config.account_indexes.clone(), accounts_db_caching_enabled: config.accounts_db_caching_enabled, - accounts_index_config: config.accounts_index_config, + accounts_index_config: config.accounts_index_config.clone(), shrink_ratio: config.accounts_shrink_ratio, accounts_db_test_hash_calculation: config.accounts_db_test_hash_calculation, accounts_db_skip_shrink: config.accounts_db_skip_shrink, diff --git a/ledger/src/bank_forks_utils.rs b/ledger/src/bank_forks_utils.rs index 7dceae42f7..e3ffc8d3a0 100644 --- a/ledger/src/bank_forks_utils.rs +++ b/ledger/src/bank_forks_utils.rs @@ -157,7 +157,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_config, + process_options.accounts_index_config.clone(), ) .expect("Load from snapshot failed"); diff --git a/ledger/src/blockstore_processor.rs b/ledger/src/blockstore_processor.rs index 9645c3fb2d..12feccdda3 100644 --- a/ledger/src/blockstore_processor.rs +++ b/ledger/src/blockstore_processor.rs @@ -504,7 +504,7 @@ pub fn process_blockstore( opts.accounts_db_caching_enabled, opts.shrink_ratio, false, - opts.accounts_index_config, + opts.accounts_index_config.clone(), ); let bank0 = Arc::new(bank0); info!("processing ledger for slot 0..."); diff --git a/local-cluster/src/validator_configs.rs b/local-cluster/src/validator_configs.rs index 55d289754c..47e5776f0d 100644 --- a/local-cluster/src/validator_configs.rs +++ b/local-cluster/src/validator_configs.rs @@ -58,7 +58,7 @@ pub fn safe_clone_config(config: &ValidatorConfig) -> ValidatorConfig { poh_hashes_per_batch: config.poh_hashes_per_batch, no_wait_for_vote_to_start_leader: config.no_wait_for_vote_to_start_leader, accounts_shrink_ratio: config.accounts_shrink_ratio, - accounts_index_config: config.accounts_index_config, + accounts_index_config: config.accounts_index_config.clone(), } } diff --git a/runtime/src/accounts_index.rs b/runtime/src/accounts_index.rs index 3948887041..6107f44327 100644 --- a/runtime/src/accounts_index.rs +++ b/runtime/src/accounts_index.rs @@ -81,7 +81,7 @@ pub struct AccountSecondaryIndexesIncludeExclude { pub keys: HashSet, } -#[derive(Debug, Default, Clone, Copy)] +#[derive(Debug, Default, Clone)] pub struct AccountsIndexConfig { pub bins: Option, }