From 2658410afc313a6c44ae2915074d1e15a6e0ce97 Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Thu, 28 Jul 2022 15:53:56 +1000 Subject: [PATCH] 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. --- storage/innobase/lock/lock0lock.cc | 1 + 1 file changed, 1 insertion(+) 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