From 7cf71011fd8642a3a34941344c4d8cca55354d37 Mon Sep 17 00:00:00 2001 From: "Jeff Washington (jwash)" Date: Fri, 22 Sep 2023 11:40:46 -0700 Subject: [PATCH] disk bucket: init restart path (#33375) --- accounts-db/src/bucket_map_holder.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/accounts-db/src/bucket_map_holder.rs b/accounts-db/src/bucket_map_holder.rs index 77ae98bdfe..c5fb8e6872 100644 --- a/accounts-db/src/bucket_map_holder.rs +++ b/accounts-db/src/bucket_map_holder.rs @@ -204,7 +204,15 @@ impl + Into> BucketMapHolder .unwrap_or(DEFAULT_AGE_TO_STAY_IN_CACHE); let mut bucket_config = BucketMapConfig::new(bins); - bucket_config.drives = config.as_ref().and_then(|config| config.drives.clone()); + bucket_config.drives = config.as_ref().and_then(|config| { + bucket_config.restart_config_file = config.drives.as_ref().and_then(|drives| { + drives + .first() + .map(|drive| drive.join("accounts_index_restart")) + }); + config.drives.clone() + }); + let mem_budget_mb = match config .as_ref() .map(|config| &config.index_limit_mb)