diff options
author | Alek5andr-Kotov <akotov@ydb.tech> | 2024-11-28 14:15:12 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-28 14:15:12 +0300 |
commit | a02f6d5c5e0fb2e55262e2377820f1622d34815d (patch) | |
tree | 0bd4ab3e064c6b817b663ee100d989f12d1397ed | |
parent | 7680faac10bd97e86288eeed77a2d1d1da58ead1 (diff) | |
download | ydb-a02f6d5c5e0fb2e55262e2377820f1622d34815d.tar.gz |
Improvements to the transaction list (#12085)
-rw-r--r-- | ydb/core/persqueue/pq_impl_app.cpp | 9 |
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); } |