remove bank_from_snapshot_archives caching_enabled (#29171)

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

View File

@ -453,7 +453,6 @@ fn test_snapshots_have_expected_epoch_accounts_hash() {
None,
None,
AccountSecondaryIndexes::default(),
false,
None,
AccountShrinkThreshold::default(),
true,

View File

@ -172,7 +172,6 @@ fn restore_from_snapshot(
None,
None,
AccountSecondaryIndexes::default(),
false,
None,
accounts_db::AccountShrinkThreshold::default(),
check_hash_calculation,

View File

@ -609,7 +609,6 @@ fn test_extra_fields_full_snapshot_archive() {
None,
None,
AccountSecondaryIndexes::default(),
false,
None,
AccountShrinkThreshold::default(),
false,

View File

@ -959,7 +959,6 @@ pub fn bank_from_snapshot_archives(
debug_keys: Option<Arc<HashSet<Pubkey>>>,
additional_builtins: Option<&Builtins>,
account_secondary_indexes: AccountSecondaryIndexes,
accounts_db_caching_enabled: bool,
limit_load_slot_count_from_snapshot: Option<usize>,
shrink_ratio: AccountShrinkThreshold,
test_hash_calculation: bool,
@ -1004,7 +1003,7 @@ pub fn bank_from_snapshot_archives(
debug_keys,
additional_builtins,
account_secondary_indexes,
accounts_db_caching_enabled,
true, // caching_enabled
limit_load_slot_count_from_snapshot,
shrink_ratio,
verify_index,
@ -1063,7 +1062,7 @@ pub fn bank_from_latest_snapshot_archives(
debug_keys: Option<Arc<HashSet<Pubkey>>>,
additional_builtins: Option<&Builtins>,
account_secondary_indexes: AccountSecondaryIndexes,
accounts_db_caching_enabled: bool,
_accounts_db_caching_enabled: bool,
limit_load_slot_count_from_snapshot: Option<usize>,
shrink_ratio: AccountShrinkThreshold,
test_hash_calculation: bool,
@ -1108,7 +1107,6 @@ pub fn bank_from_latest_snapshot_archives(
debug_keys,
additional_builtins,
account_secondary_indexes,
accounts_db_caching_enabled,
limit_load_slot_count_from_snapshot,
shrink_ratio,
test_hash_calculation,
@ -3261,7 +3259,6 @@ mod tests {
None,
None,
AccountSecondaryIndexes::default(),
false,
None,
AccountShrinkThreshold::default(),
false,
@ -3374,7 +3371,6 @@ mod tests {
None,
None,
AccountSecondaryIndexes::default(),
false,
None,
AccountShrinkThreshold::default(),
false,
@ -3507,7 +3503,6 @@ mod tests {
None,
None,
AccountSecondaryIndexes::default(),
false,
None,
AccountShrinkThreshold::default(),
false,
@ -3771,7 +3766,6 @@ mod tests {
None,
None,
AccountSecondaryIndexes::default(),
false,
None,
AccountShrinkThreshold::default(),
false,
@ -3836,7 +3830,6 @@ mod tests {
None,
None,
AccountSecondaryIndexes::default(),
false,
None,
AccountShrinkThreshold::default(),
false,