remove handle_snapshot_requests.caching_enabled (#29174)

This commit is contained in:
Jeff Washington (jwash) 2022-12-09 12:51:44 -06:00 committed by GitHub
parent 45ba5ef6fd
commit 6a90abd056
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 6 deletions

View File

@ -252,7 +252,7 @@ fn run_bank_forks_snapshot_n<F>(
// set_root should send a snapshot request
bank_forks.set_root(bank.slot(), &request_sender, None);
bank.update_accounts_hash_for_tests();
snapshot_request_handler.handle_snapshot_requests(true, false, 0, &mut None);
snapshot_request_handler.handle_snapshot_requests(false, 0, &mut None);
}
}
@ -785,7 +785,6 @@ fn test_bank_forks_incremental_snapshot(
bank_forks.set_root(bank.slot(), &request_sender, None);
bank.update_accounts_hash_for_tests();
snapshot_request_handler.handle_snapshot_requests(
true,
false,
0,
&mut last_full_snapshot_slot,

View File

@ -148,7 +148,6 @@ impl SnapshotRequestHandler {
// Returns the latest requested snapshot slot, if one exists
pub fn handle_snapshot_requests(
&self,
accounts_db_caching_enabled: bool,
test_hash_calculation: bool,
non_snapshot_time_us: u128,
last_full_snapshot_slot: &mut Option<Slot>,
@ -180,7 +179,7 @@ impl SnapshotRequestHandler {
);
Some(self.handle_snapshot_request(
accounts_db_caching_enabled,
true,
test_hash_calculation,
non_snapshot_time_us,
last_full_snapshot_slot,
@ -520,13 +519,12 @@ impl AbsRequestHandlers {
// Returns the latest requested snapshot block height, if one exists
pub fn handle_snapshot_requests(
&self,
accounts_db_caching_enabled: bool,
_accounts_db_caching_enabled: bool,
test_hash_calculation: bool,
non_snapshot_time_us: u128,
last_full_snapshot_slot: &mut Option<Slot>,
) -> Option<Result<u64, SnapshotError>> {
self.snapshot_request_handler.handle_snapshot_requests(
accounts_db_caching_enabled,
test_hash_calculation,
non_snapshot_time_us,
last_full_snapshot_slot,