Skip to content

Commit

Permalink
Use empty message instead of bool
Browse files Browse the repository at this point in the history
  • Loading branch information
dcherednik committed May 22, 2024
1 parent 2d63f85 commit 3b1f52c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ydb/core/protos/flat_scheme_op.proto
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,7 @@ message TCreateCdcStream {
optional uint64 RetentionPeriodSeconds = 3 [default = 86400]; // 1d by default
optional uint32 TopicPartitions = 4;
oneof IndexMode {
bool AllIndexes = 5; // Create topic per each index
google.protobuf.Empty AllIndexes = 5; // Create topic per each index
string IndexName = 6;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -979,7 +979,7 @@ TVector<ISubOperation::TPtr> CreateNewCdcStream(TOperationId opId, const TTxTran

std::vector<TString> candidates;

if (op.GetIndexModeCase() == NKikimrSchemeOp::TCreateCdcStream::kAllIndexes && op.GetAllIndexes()) {
if (op.GetIndexModeCase() == NKikimrSchemeOp::TCreateCdcStream::kAllIndexes) {
candidates.reserve(tablePath->GetChildren().size());
for (const auto& child : tablePath->GetChildren()) {
candidates.emplace_back(child.first);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Y_UNIT_TEST_SUITE(TCdcStreamWithRebootsTests) {
TestCreateCdcStream(runtime, ++t.TxId, "/MyRoot", Sprintf(R"(
TableName: "Table"
StreamDescription { %s }
AllIndexes: true
AllIndexes {}
)", strDesc.c_str()));
t.TestEnv->TestWaitNotification(runtime, t.TxId);

Expand Down

0 comments on commit 3b1f52c

Please sign in to comment.