aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorshmel1k <shmel1k@ydb.tech>2023-01-15 13:58:45 +0300
committershmel1k <shmel1k@ydb.tech>2023-01-15 13:58:45 +0300
commit306ddfa76ad06b2689bf0c8e7cf9de22a21c5594 (patch)
tree83f599cadad3ab14a891369cfa736274d2895ef1
parent6a1bba5a2da9553c1a016d76cf8d8a8ee20495af (diff)
downloadydb-306ddfa76ad06b2689bf0c8e7cf9de22a21c5594.tar.gz
fix storage retention settings for ydb_cli
-rw-r--r--ydb/public/lib/ydb_cli/commands/ydb_service_topic.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ydb/public/lib/ydb_cli/commands/ydb_service_topic.cpp b/ydb/public/lib/ydb_cli/commands/ydb_service_topic.cpp
index f4eb012cfb..7fd4c247ff 100644
--- a/ydb/public/lib/ydb_cli/commands/ydb_service_topic.cpp
+++ b/ydb/public/lib/ydb_cli/commands/ydb_service_topic.cpp
@@ -253,7 +253,7 @@ namespace NYdb::NConsoleClient {
}
settings.RetentionPeriod(TDuration::Hours(RetentionPeriodHours_));
- settings.RetentionStorageMb(RetentionStorageMb_ / 1_MB);
+ settings.RetentionStorageMb(RetentionStorageMb_);
auto status = topicClient.CreateTopic(TopicName, settings).GetValueSync();
ThrowOnError(status);