rebuild_bank_from_snapshots uses write cache (#29047)
This commit is contained in:
parent
babc241345
commit
7f268e0f6d
|
@ -1792,7 +1792,8 @@ fn rebuild_bank_from_snapshots(
|
|||
debug_keys: Option<Arc<HashSet<Pubkey>>>,
|
||||
additional_builtins: Option<&Builtins>,
|
||||
account_secondary_indexes: AccountSecondaryIndexes,
|
||||
accounts_db_caching_enabled: bool,
|
||||
// this parameter will be removed when all plumbing for disabling write cache is removed
|
||||
_accounts_db_caching_enabled: bool,
|
||||
limit_load_slot_count_from_snapshot: Option<usize>,
|
||||
shrink_ratio: AccountShrinkThreshold,
|
||||
verify_index: bool,
|
||||
|
@ -1800,6 +1801,7 @@ fn rebuild_bank_from_snapshots(
|
|||
accounts_update_notifier: Option<AccountsUpdateNotifier>,
|
||||
exit: &Arc<AtomicBool>,
|
||||
) -> Result<Bank> {
|
||||
let accounts_db_caching_enabled = true;
|
||||
let (full_snapshot_version, full_snapshot_root_paths) =
|
||||
verify_unpacked_snapshots_dir_and_version(
|
||||
full_snapshot_unpacked_snapshots_dir_and_version,
|
||||
|
|
Loading…
Reference in New Issue