Skip to content

Commit

Permalink
[*] Step value
Browse files Browse the repository at this point in the history
  • Loading branch information
Alek5andr-Kotov committed Nov 28, 2024
1 parent 3891cbb commit 14f363c
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 14f363c

Please sign in to comment.