Skip to content

Commit

Permalink
to change the configuration, skip the step CALCULATING (ydb-platform#743
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Alek5andr-Kotov authored and adameat committed Dec 29, 2023
1 parent c94f7ab commit 82ac8cc
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions ydb/core/persqueue/pq_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3508,15 +3508,19 @@ void TPersQueue::CheckTxState(const TActorContext& ctx,
if (tx.PartitionRepliesCount == tx.PartitionRepliesExpected) {
switch (tx.Kind) {
case NKikimrPQ::TTransaction::KIND_DATA:
SendEvReadSetToReceivers(ctx, tx);

[[fallthrough]];
WriteTx(tx, NKikimrPQ::TTransaction::WAIT_RS);

tx.State = NKikimrPQ::TTransaction::CALCULATED;
break;

case NKikimrPQ::TTransaction::KIND_CONFIG:
SendEvReadSetToReceivers(ctx, tx);

WriteTx(tx, NKikimrPQ::TTransaction::WAIT_RS);
tx.State = NKikimrPQ::TTransaction::WAIT_RS;

tx.State = NKikimrPQ::TTransaction::CALCULATED;
CheckTxState(ctx, tx);
break;

case NKikimrPQ::TTransaction::KIND_UNKNOWN:
Expand Down

0 comments on commit 82ac8cc

Please sign in to comment.