remove handle_snapshot_requests.caching_enabled (#29174)
This commit is contained in:
parent
45ba5ef6fd
commit
6a90abd056
|
@ -252,7 +252,7 @@ fn run_bank_forks_snapshot_n<F>(
|
||||||
// set_root should send a snapshot request
|
// set_root should send a snapshot request
|
||||||
bank_forks.set_root(bank.slot(), &request_sender, None);
|
bank_forks.set_root(bank.slot(), &request_sender, None);
|
||||||
bank.update_accounts_hash_for_tests();
|
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_forks.set_root(bank.slot(), &request_sender, None);
|
||||||
bank.update_accounts_hash_for_tests();
|
bank.update_accounts_hash_for_tests();
|
||||||
snapshot_request_handler.handle_snapshot_requests(
|
snapshot_request_handler.handle_snapshot_requests(
|
||||||
true,
|
|
||||||
false,
|
false,
|
||||||
0,
|
0,
|
||||||
&mut last_full_snapshot_slot,
|
&mut last_full_snapshot_slot,
|
||||||
|
|
|
@ -148,7 +148,6 @@ impl SnapshotRequestHandler {
|
||||||
// Returns the latest requested snapshot slot, if one exists
|
// Returns the latest requested snapshot slot, if one exists
|
||||||
pub fn handle_snapshot_requests(
|
pub fn handle_snapshot_requests(
|
||||||
&self,
|
&self,
|
||||||
accounts_db_caching_enabled: bool,
|
|
||||||
test_hash_calculation: bool,
|
test_hash_calculation: bool,
|
||||||
non_snapshot_time_us: u128,
|
non_snapshot_time_us: u128,
|
||||||
last_full_snapshot_slot: &mut Option<Slot>,
|
last_full_snapshot_slot: &mut Option<Slot>,
|
||||||
|
@ -180,7 +179,7 @@ impl SnapshotRequestHandler {
|
||||||
);
|
);
|
||||||
|
|
||||||
Some(self.handle_snapshot_request(
|
Some(self.handle_snapshot_request(
|
||||||
accounts_db_caching_enabled,
|
true,
|
||||||
test_hash_calculation,
|
test_hash_calculation,
|
||||||
non_snapshot_time_us,
|
non_snapshot_time_us,
|
||||||
last_full_snapshot_slot,
|
last_full_snapshot_slot,
|
||||||
|
@ -520,13 +519,12 @@ impl AbsRequestHandlers {
|
||||||
// Returns the latest requested snapshot block height, if one exists
|
// Returns the latest requested snapshot block height, if one exists
|
||||||
pub fn handle_snapshot_requests(
|
pub fn handle_snapshot_requests(
|
||||||
&self,
|
&self,
|
||||||
accounts_db_caching_enabled: bool,
|
_accounts_db_caching_enabled: bool,
|
||||||
test_hash_calculation: bool,
|
test_hash_calculation: bool,
|
||||||
non_snapshot_time_us: u128,
|
non_snapshot_time_us: u128,
|
||||||
last_full_snapshot_slot: &mut Option<Slot>,
|
last_full_snapshot_slot: &mut Option<Slot>,
|
||||||
) -> Option<Result<u64, SnapshotError>> {
|
) -> Option<Result<u64, SnapshotError>> {
|
||||||
self.snapshot_request_handler.handle_snapshot_requests(
|
self.snapshot_request_handler.handle_snapshot_requests(
|
||||||
accounts_db_caching_enabled,
|
|
||||||
test_hash_calculation,
|
test_hash_calculation,
|
||||||
non_snapshot_time_us,
|
non_snapshot_time_us,
|
||||||
last_full_snapshot_slot,
|
last_full_snapshot_slot,
|
||||||
|
|
Loading…
Reference in New Issue