diff options
author | ilnaz <ilnaz@ydb.tech> | 2022-10-28 01:14:50 +0300 |
---|---|---|
committer | ilnaz <ilnaz@ydb.tech> | 2022-10-28 01:14:50 +0300 |
commit | e86badd466683de764e9ca22bc185566b43b82e6 (patch) | |
tree | 783147ffbd6ffd82789f573dadb676e5624f8bd7 | |
parent | f38a505107eda5de13fc7a24826db2939b4624c8 (diff) | |
download | ydb-e86badd466683de764e9ca22bc185566b43b82e6.tar.gz |
table ttl reset
-rw-r--r-- | ydb/public/lib/ydb_cli/commands/ydb_service_table.cpp | 12 | ||||
-rw-r--r-- | ydb/public/lib/ydb_cli/commands/ydb_service_table.h | 4 |
2 files changed, 8 insertions, 8 deletions
diff --git a/ydb/public/lib/ydb_cli/commands/ydb_service_table.cpp b/ydb/public/lib/ydb_cli/commands/ydb_service_table.cpp index a9648edf1b..238c7c95df 100644 --- a/ydb/public/lib/ydb_cli/commands/ydb_service_table.cpp +++ b/ydb/public/lib/ydb_cli/commands/ydb_service_table.cpp @@ -55,7 +55,7 @@ TCommandTtl::TCommandTtl() : TClientCommandTree("ttl", {}, "Ttl operations") { AddCommand(std::make_unique<TCommandTtlSet>()); - AddCommand(std::make_unique<TCommandTtlDrop>()); + AddCommand(std::make_unique<TCommandTtlReset>()); } TCommandIndexAdd::TCommandIndexAdd() @@ -1076,22 +1076,22 @@ int TCommandTtlSet::Run(TConfig& config) { return EXIT_SUCCESS; } -TCommandTtlDrop::TCommandTtlDrop() - : TYdbCommand("drop", {}, "Drop ttl settings from the specified table") +TCommandTtlReset::TCommandTtlReset() + : TYdbCommand("reset", {"drop"}, "Reset ttl settings of the specified table") {} -void TCommandTtlDrop::Config(TConfig& config) { +void TCommandTtlReset::Config(TConfig& config) { TYdbCommand::Config(config); config.SetFreeArgsNum(1); SetFreeArgTitle(0, "<table path>", "Path to a table"); } -void TCommandTtlDrop::Parse(TConfig& config) { +void TCommandTtlReset::Parse(TConfig& config) { TClientCommand::Parse(config); ParsePath(config, 0); } -int TCommandTtlDrop::Run(TConfig& config) { +int TCommandTtlReset::Run(TConfig& config) { NTable::TTableClient client(CreateDriver(config)); auto settings = NTable::TAlterTableSettings() diff --git a/ydb/public/lib/ydb_cli/commands/ydb_service_table.h b/ydb/public/lib/ydb_cli/commands/ydb_service_table.h index 5cd2514aa0..93ae2a6f0c 100644 --- a/ydb/public/lib/ydb_cli/commands/ydb_service_table.h +++ b/ydb/public/lib/ydb_cli/commands/ydb_service_table.h @@ -228,9 +228,9 @@ private: TDuration RunInterval = TDuration::Zero(); }; -class TCommandTtlDrop : public TYdbCommand, public TCommandWithPath { +class TCommandTtlReset : public TYdbCommand, public TCommandWithPath { public: - TCommandTtlDrop(); + TCommandTtlReset(); virtual void Config(TConfig& config) override; virtual void Parse(TConfig& config) override; virtual int Run(TConfig& config) override; |