remove AccountsBackgroundService::new(caching_enabled) (#29234)

This commit is contained in:
Jeff Washington (jwash) 2022-12-13 09:18:02 -06:00 committed by GitHub
parent 3b4c27b727
commit b95835143e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 3 additions and 12 deletions

View File

@ -635,7 +635,6 @@ impl Validator {
snapshot_request_handler, snapshot_request_handler,
pruned_banks_request_handler, pruned_banks_request_handler,
}, },
true, // caching_enabled
config.accounts_db_test_hash_calculation, config.accounts_db_test_hash_calculation,
last_full_snapshot_slot, last_full_snapshot_slot,
); );

View File

@ -221,7 +221,6 @@ impl BackgroundServices {
snapshot_request_handler, snapshot_request_handler,
pruned_banks_request_handler, pruned_banks_request_handler,
}, },
true,
false, false,
None, None,
); );

View File

@ -1040,14 +1040,8 @@ fn test_snapshots_with_background_services(
snapshot_test_config.snapshot_config.clone(), snapshot_test_config.snapshot_config.clone(),
); );
let accounts_background_service = AccountsBackgroundService::new( let accounts_background_service =
bank_forks.clone(), AccountsBackgroundService::new(bank_forks.clone(), &exit, abs_request_handler, false, None);
&exit,
abs_request_handler,
true,
false,
None,
);
let mut last_full_snapshot_slot = None; let mut last_full_snapshot_slot = None;
let mut last_incremental_snapshot_slot = None; let mut last_incremental_snapshot_slot = None;

View File

@ -1156,7 +1156,6 @@ fn load_bank_forks(
bank_forks.clone(), bank_forks.clone(),
&exit, &exit,
abs_request_handler, abs_request_handler,
true,
process_options.accounts_db_test_hash_calculation, process_options.accounts_db_test_hash_calculation,
None, None,
); );

View File

@ -539,10 +539,10 @@ impl AccountsBackgroundService {
bank_forks: Arc<RwLock<BankForks>>, bank_forks: Arc<RwLock<BankForks>>,
exit: &Arc<AtomicBool>, exit: &Arc<AtomicBool>,
request_handlers: AbsRequestHandlers, request_handlers: AbsRequestHandlers,
accounts_db_caching_enabled: bool,
test_hash_calculation: bool, test_hash_calculation: bool,
mut last_full_snapshot_slot: Option<Slot>, mut last_full_snapshot_slot: Option<Slot>,
) -> Self { ) -> Self {
let accounts_db_caching_enabled = true;
info!("AccountsBackgroundService active"); info!("AccountsBackgroundService active");
let exit = exit.clone(); let exit = exit.clone();
let mut consumed_budget = 0; let mut consumed_budget = 0;