We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1eaf01b commit e90349dCopy full SHA for e90349d
ydb/core/tx/replication/controller/tx_init.cpp
@@ -132,9 +132,7 @@ class TController::TTxInit: public TTxBase {
132
const auto tid = rowset.GetValue<Schema::SrcStreams::TargetId>();
133
const auto name = rowset.GetValue<Schema::SrcStreams::Name>();
134
const auto state = rowset.GetValue<Schema::SrcStreams::State>();
135
- const auto consumerName = rowset.HaveValue<Schema::SrcStreams::ConsumerName>()
136
- ? rowset.GetValue<Schema::SrcStreams::ConsumerName>()
137
- : ReplicationConsumerName;
+ const auto consumerName = rowset.GetValueOrDefault<Schema::SrcStreams::ConsumerName>(ReplicationConsumerName);
138
139
auto replication = Self->Find(rid);
140
Y_VERIFY_S(replication, "Unknown replication: " << rid);
0 commit comments