remove AccountsBackgroundService::new(caching_enabled) (#29234)
This commit is contained in:
parent
3b4c27b727
commit
b95835143e
|
@ -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,
|
||||||
);
|
);
|
||||||
|
|
|
@ -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,
|
||||||
);
|
);
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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,
|
||||||
);
|
);
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue