summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Rutkovsky <[email protected]>2025-02-20 09:57:29 +0300
committerGitHub <[email protected]>2025-02-20 09:57:29 +0300
commit24d79ff84f7ed104f2106d5a1e33161d93f9badf (patch)
tree4ccee825d7f5acb4cef4e3822a5188c7d872235b
parentcbcbac86e5c81e3b29632dc403a3ee15f47cacd5 (diff)
Fix typo (#14820)
-rw-r--r--ydb/public/lib/ydb_cli/commands/ydb_storage_config.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ydb/public/lib/ydb_cli/commands/ydb_storage_config.cpp b/ydb/public/lib/ydb_cli/commands/ydb_storage_config.cpp
index c570ffd4f8d..5dd514e6b53 100644
--- a/ydb/public/lib/ydb_cli/commands/ydb_storage_config.cpp
+++ b/ydb/public/lib/ydb_cli/commands/ydb_storage_config.cpp
@@ -164,9 +164,9 @@ int TCommandStorageConfigReplace::Run(TConfig& config) {
auto client = NYdb::NConfig::TConfigClient(*driver);
auto status = [&]() {
- if (SwitchDedicatedStorageSection && *SwitchDedicatedStorageSection) {
+ if (SwitchDedicatedStorageSection && !*SwitchDedicatedStorageSection) {
return client.ReplaceConfigDisableDedicatedStorageSection(ClusterYaml.value()).GetValueSync();
- } else if (SwitchDedicatedStorageSection && !*SwitchDedicatedStorageSection) {
+ } else if (SwitchDedicatedStorageSection && *SwitchDedicatedStorageSection) {
return client.ReplaceConfigEnableDedicatedStorageSection(ClusterYaml.value(), StorageYaml.value()).GetValueSync();
} else if (DedicatedConfigMode) {
return client.ReplaceConfig(ClusterYaml.value(), StorageYaml.value()).GetValueSync();