aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlek5andr-Kotov <akotov@ydb.tech>2024-11-28 14:15:12 +0300
committerGitHub <noreply@github.com>2024-11-28 14:15:12 +0300
commita02f6d5c5e0fb2e55262e2377820f1622d34815d (patch)
tree0bd4ab3e064c6b817b663ee100d989f12d1397ed
parent7680faac10bd97e86288eeed77a2d1d1da58ead1 (diff)
downloadydb-a02f6d5c5e0fb2e55262e2377820f1622d34815d.tar.gz
Improvements to the transaction list (#12085)
-rw-r--r--ydb/core/persqueue/pq_impl_app.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/ydb/core/persqueue/pq_impl_app.cpp b/ydb/core/persqueue/pq_impl_app.cpp
index 331c13339e..f439a67111 100644
--- a/ydb/core/persqueue/pq_impl_app.cpp
+++ b/ydb/core/persqueue/pq_impl_app.cpp
@@ -123,7 +123,7 @@ private:
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;}
@@ -147,6 +147,13 @@ private:
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);
}