remove caching_enabled from Bank::new_with_paths_for_tests (#29214)
This commit is contained in:
parent
1b0aaf1607
commit
2c2324f4ea
|
@ -102,7 +102,6 @@ impl SnapshotTestConfig {
|
||||||
Arc::<RuntimeConfig>::default(),
|
Arc::<RuntimeConfig>::default(),
|
||||||
vec![accounts_dir.path().to_path_buf()],
|
vec![accounts_dir.path().to_path_buf()],
|
||||||
AccountSecondaryIndexes::default(),
|
AccountSecondaryIndexes::default(),
|
||||||
true,
|
|
||||||
accounts_db::AccountShrinkThreshold::default(),
|
accounts_db::AccountShrinkThreshold::default(),
|
||||||
);
|
);
|
||||||
bank0.freeze();
|
bank0.freeze();
|
||||||
|
|
|
@ -3714,7 +3714,6 @@ pub mod tests {
|
||||||
Arc::<RuntimeConfig>::default(),
|
Arc::<RuntimeConfig>::default(),
|
||||||
account_paths,
|
account_paths,
|
||||||
AccountSecondaryIndexes::default(),
|
AccountSecondaryIndexes::default(),
|
||||||
false,
|
|
||||||
AccountShrinkThreshold::default(),
|
AccountShrinkThreshold::default(),
|
||||||
);
|
);
|
||||||
*bank.epoch_schedule()
|
*bank.epoch_schedule()
|
||||||
|
|
|
@ -1233,7 +1233,6 @@ impl Bank {
|
||||||
runtime_config,
|
runtime_config,
|
||||||
Vec::new(),
|
Vec::new(),
|
||||||
AccountSecondaryIndexes::default(),
|
AccountSecondaryIndexes::default(),
|
||||||
false,
|
|
||||||
AccountShrinkThreshold::default(),
|
AccountShrinkThreshold::default(),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -1248,7 +1247,7 @@ impl Bank {
|
||||||
pub(crate) fn new_with_config_for_tests(
|
pub(crate) fn new_with_config_for_tests(
|
||||||
genesis_config: &GenesisConfig,
|
genesis_config: &GenesisConfig,
|
||||||
account_indexes: AccountSecondaryIndexes,
|
account_indexes: AccountSecondaryIndexes,
|
||||||
accounts_db_caching_enabled: bool,
|
_accounts_db_caching_enabled: bool,
|
||||||
shrink_ratio: AccountShrinkThreshold,
|
shrink_ratio: AccountShrinkThreshold,
|
||||||
) -> Self {
|
) -> Self {
|
||||||
Self::new_with_paths_for_tests(
|
Self::new_with_paths_for_tests(
|
||||||
|
@ -1256,7 +1255,6 @@ impl Bank {
|
||||||
Arc::<RuntimeConfig>::default(),
|
Arc::<RuntimeConfig>::default(),
|
||||||
Vec::new(),
|
Vec::new(),
|
||||||
account_indexes,
|
account_indexes,
|
||||||
accounts_db_caching_enabled,
|
|
||||||
shrink_ratio,
|
shrink_ratio,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -1335,7 +1333,6 @@ impl Bank {
|
||||||
runtime_config: Arc<RuntimeConfig>,
|
runtime_config: Arc<RuntimeConfig>,
|
||||||
paths: Vec<PathBuf>,
|
paths: Vec<PathBuf>,
|
||||||
account_indexes: AccountSecondaryIndexes,
|
account_indexes: AccountSecondaryIndexes,
|
||||||
_accounts_db_caching_enabled: bool,
|
|
||||||
shrink_ratio: AccountShrinkThreshold,
|
shrink_ratio: AccountShrinkThreshold,
|
||||||
) -> Self {
|
) -> Self {
|
||||||
Self::new_with_paths(
|
Self::new_with_paths(
|
||||||
|
|
|
@ -3682,7 +3682,6 @@ mod tests {
|
||||||
Arc::<RuntimeConfig>::default(),
|
Arc::<RuntimeConfig>::default(),
|
||||||
vec![accounts_dir.path().to_path_buf()],
|
vec![accounts_dir.path().to_path_buf()],
|
||||||
AccountSecondaryIndexes::default(),
|
AccountSecondaryIndexes::default(),
|
||||||
false,
|
|
||||||
AccountShrinkThreshold::default(),
|
AccountShrinkThreshold::default(),
|
||||||
));
|
));
|
||||||
bank0
|
bank0
|
||||||
|
|
Loading…
Reference in New Issue