Skip to content

Commit e90349d

Browse files
Update ydb/core/tx/replication/controller/tx_init.cpp
Co-authored-by: Ilnaz Nizametdinov <[email protected]>
1 parent 1eaf01b commit e90349d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ydb/core/tx/replication/controller/tx_init.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,7 @@ class TController::TTxInit: public TTxBase {
132132
const auto tid = rowset.GetValue<Schema::SrcStreams::TargetId>();
133133
const auto name = rowset.GetValue<Schema::SrcStreams::Name>();
134134
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;
135+
const auto consumerName = rowset.GetValueOrDefault<Schema::SrcStreams::ConsumerName>(ReplicationConsumerName);
138136

139137
auto replication = Self->Find(rid);
140138
Y_VERIFY_S(replication, "Unknown replication: " << rid);

0 commit comments

Comments
 (0)