Skip to content

Commit 5cf89a2

Browse files
committed
Refactor ydb cli options (#15800)
1 parent c957c93 commit 5cf89a2

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

examples/secondary_index/secondary_index_list.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ int RunListSeries(TDriver& driver, const std::string& prefix, int argc, char** a
246246
uint64_t lastSeriesId = -1;
247247
uint64_t lastViews = -1;
248248

249-
opts.AddLongOption("by-views", "Sort by views").NoArgument().SetFlag(&byViews);
249+
opts.AddLongOption("by-views", "Sort by views").StoreTrue(&byViews);
250250
opts.AddLongOption("limit", "Maximum number of rows").Optional().RequiredArgument("NUM")
251251
.StoreResult(&limit);
252252
opts.AddLongOption("last-id", "Resume from this last series id").Optional().RequiredArgument("NUM")

src/api/protos/draft/ydb_maintenance.proto

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,24 @@ message MaintenanceTaskOptions {
9696

9797
// Used to describe the scope of a single action.
9898
message ActionScope {
99+
message PDiskId {
100+
uint32 node_id = 1;
101+
uint32 pdisk_id = 2;
102+
}
103+
message PDiskLocation {
104+
string host = 1 [(length).le = 255];
105+
string path = 2 [(length).le = 255];
106+
}
107+
message PDisk {
108+
oneof pdisk {
109+
PDiskId pdisk_id = 1;
110+
PDiskLocation pdisk_location = 2;
111+
}
112+
}
99113
oneof scope {
100114
uint32 node_id = 1;
101115
string host = 2 [(length).le = 255];
116+
PDisk pdisk = 3;
102117
}
103118
}
104119

0 commit comments

Comments
 (0)