Skip to content

Commit 1e4ab68

Browse files
committed
Fix pqv1
1 parent 4d9cf0d commit 1e4ab68

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

ydb/public/api/protos/ydb_persqueue_v1.proto

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import "ydb/public/api/protos/annotations/sensitive.proto";
77
import "ydb/public/api/protos/annotations/validation.proto";
88

99
import "google/protobuf/duration.proto";
10-
import "google/protobuf/empty.proto";
1110

1211
package Ydb.PersQueue.V1;
1312

@@ -1186,11 +1185,8 @@ message TopicSettings {
11861185
// remote mirror rule for this topic.
11871186
RemoteMirrorRule remote_mirror_rule = 11;
11881187

1189-
// Setup or remove counters level settings.
1190-
oneof metrics_level {
1191-
uint32 set_metrics_level = 16;
1192-
google.protobuf.Empty reset_metrics_level = 17;
1193-
}
1188+
// Set or reset metrics level.
1189+
optional uint32 metrics_level = 16;
11941190
}
11951191

11961192
message AutoPartitioningSettings {

ydb/services/lib/actors/pq_schema_actor.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -904,9 +904,9 @@ namespace NKikimr::NGRpcProxy::V1 {
904904
}
905905
}
906906

907-
if (settings.has_set_metrics_level()) {
908-
pqTabletConfig->SetMetricsLevel(settings.set_metrics_level());
909-
} else if (settings.has_reset_metrics_level()) {
907+
if (settings.has_metrics_level()) {
908+
pqTabletConfig->SetMetricsLevel(settings.metrics_level());
909+
} else {
910910
pqTabletConfig->ClearMetricsLevel();
911911
}
912912

0 commit comments

Comments
 (0)