Skip to content

Commit

Permalink
Improvements to the transaction list (#12085)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alek5andr-Kotov authored Nov 28, 2024
1 parent 7680faa commit a02f6d5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ydb/core/persqueue/pq_impl_app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class TMonitoringProxy : public TActorBootstrapped<TMonitoringProxy> {
str << tx.TxId;
}
}
TABLED() {str << tx.Step;}
TABLED() {str << GetTxStep(tx);}
TABLED() {str << NKikimrPQ::TTransaction_EState_Name(tx.State);}
TABLED() {str << tx.MinStep;}
TABLED() {str << tx.MaxStep;}
Expand All @@ -147,6 +147,13 @@ class TMonitoringProxy : public TActorBootstrapped<TMonitoringProxy> {
Die(ctx);
}

static TString GetTxStep(const TTransactionSnapshot& tx) {
if (tx.Step == Max<ui64>()) {
return "-";
}
return ToString(tx.Step);
}

void Wakeup(const TActorContext& ctx) {
Reply(ctx);
}
Expand Down

0 comments on commit a02f6d5

Please sign in to comment.