summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Black <daniel@mariadb.org>2022-07-28 15:53:56 +1000
committerDaniel Black <daniel@mariadb.org>2022-07-28 16:22:43 +1000
commit2658410afc313a6c44ae2915074d1e15a6e0ce97 (patch)
tree97fe7bbe00e886abb07ab88df4916dd819a1d746
parent30914389fe9ca13cf29470dd033a5cf6997a3931 (diff)
downloadmariadb-git-2658410afc313a6c44ae2915074d1e15a6e0ce97.tar.gz
MDEV-29187: Deadlock output in InnoDB status always shows transaction (0)
At some point the incrementing of the transaction counter got dropped. Thanks Agustin for the bug report.
-rw-r--r--storage/innobase/lock/lock0lock.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/storage/innobase/lock/lock0lock.cc b/storage/innobase/lock/lock0lock.cc
index d5905e7b523..6a24f369c22 100644
--- a/storage/innobase/lock/lock0lock.cc
+++ b/storage/innobase/lock/lock0lock.cc
@@ -6126,6 +6126,7 @@ namespace Deadlock
for (trx_t *next= cycle;;)
{
next= next->lock.wait_trx;
+ l++;
const undo_no_t next_weight= TRX_WEIGHT(next) |
(next->mysql_thd &&
#ifdef WITH_WSREP