@@ -633,7 +633,7 @@ void TNodeWarden::ProcessShredStatus(ui64 cookie, ui64 generation, std::optional
633633
634634void TNodeWarden::PersistConfig (std::optional<TString> mainYaml, ui64 mainYamlVersion, std::optional<TString> storageYaml,
635635 std::optional<ui64> storageYamlVersion) {
636- if (!Cfg->ConfigStorePath ) {
636+ if (!Cfg->ConfigDirPath ) {
637637 // no storage directory specified
638638 return ;
639639 } else if (auto *appData = AppData (); appData->DynamicNameserviceConfig &&
@@ -658,7 +658,7 @@ void TNodeWarden::PersistConfig(std::optional<TString> mainYaml, ui64 mainYamlVe
658658 }
659659
660660 struct TSaveContext {
661- TString ConfigStorePath ;
661+ TString ConfigDirPath ;
662662 std::optional<TString> MainYaml;
663663 ui64 MainYamlVersion;
664664 std::optional<TString> StorageYaml;
@@ -669,7 +669,7 @@ void TNodeWarden::PersistConfig(std::optional<TString> mainYaml, ui64 mainYamlVe
669669 };
670670
671671 auto saveCtx = std::make_shared<TSaveContext>(TSaveContext{
672- .ConfigStorePath = Cfg->ConfigStorePath ,
672+ .ConfigDirPath = Cfg->ConfigDirPath ,
673673 .MainYaml = std::move (mainYaml),
674674 .MainYamlVersion = mainYamlVersion,
675675 .StorageYaml = std::move (storageYaml),
@@ -682,16 +682,16 @@ void TNodeWarden::PersistConfig(std::optional<TString> mainYaml, ui64 mainYamlVe
682682 EnqueueSyncOp ([this , saveCtx](const TActorContext&) {
683683 bool success = true ;
684684 try {
685- MakePathIfNotExist (saveCtx->ConfigStorePath .c_str ());
685+ MakePathIfNotExist (saveCtx->ConfigDirPath .c_str ());
686686 } catch (const yexception& e) {
687687 STLOG (PRI_ERROR, BS_NODE, NW91, " Failed to create config store path" , (Error, e.what ()));
688688 success = false ;
689689 }
690690
691691 auto saveConfig = [&](const TString& yaml, const TString& configFileName) -> bool {
692692 try {
693- TString tempPath = TStringBuilder () << saveCtx->ConfigStorePath << " /temp_" << configFileName;
694- TString configPath = TStringBuilder () << saveCtx->ConfigStorePath << " /" << configFileName;
693+ TString tempPath = TStringBuilder () << saveCtx->ConfigDirPath << " /temp_" << configFileName;
694+ TString configPath = TStringBuilder () << saveCtx->ConfigDirPath << " /" << configFileName;
695695
696696 {
697697 TFileOutput tempFile (tempPath);
@@ -725,7 +725,7 @@ void TNodeWarden::PersistConfig(std::optional<TString> mainYaml, ui64 mainYamlVe
725725 }
726726
727727 if (saveCtx->DeleteStorage ) {
728- std::filesystem::remove (std::filesystem::path (saveCtx->ConfigStorePath .c_str ()) / StorageConfigFileName);
728+ std::filesystem::remove (std::filesystem::path (saveCtx->ConfigDirPath .c_str ()) / StorageConfigFileName);
729729 } else if (success && saveCtx->UpdateStorage ) {
730730 success = saveConfig (*saveCtx->StorageYaml , StorageConfigFileName);
731731 if (success) {
0 commit comments