Skip to content

Commit 14f363c

Browse files
[*] Step value
1 parent 3891cbb commit 14f363c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

ydb/core/persqueue/pq_impl_app.cpp

+8-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ class TMonitoringProxy : public TActorBootstrapped<TMonitoringProxy> {
123123
str << tx.TxId;
124124
}
125125
}
126-
TABLED() {str << tx.Step;}
126+
TABLED() {str << GetTxStep(tx);}
127127
TABLED() {str << NKikimrPQ::TTransaction_EState_Name(tx.State);}
128128
TABLED() {str << tx.MinStep;}
129129
TABLED() {str << tx.MaxStep;}
@@ -147,6 +147,13 @@ class TMonitoringProxy : public TActorBootstrapped<TMonitoringProxy> {
147147
Die(ctx);
148148
}
149149

150+
static TString GetTxStep(const TTransactionSnapshot& tx) {
151+
if (tx.Step == Max<ui64>()) {
152+
return "-";
153+
}
154+
return ToString(tx.Step);
155+
}
156+
150157
void Wakeup(const TActorContext& ctx) {
151158
Reply(ctx);
152159
}

0 commit comments

Comments
 (0)