diff --git a/storage/innobase/lock/lock0lock.cc b/storage/innobase/lock/lock0lock.cc index 2265cd8..2acd8e5 100644 --- a/storage/innobase/lock/lock0lock.cc +++ b/storage/innobase/lock/lock0lock.cc @@ -7413,8 +7413,6 @@ DeadlockChecker::check_and_resolve(const lock_t* lock, const trx_t* trx) rollback_print(victim_trx, lock); - MONITOR_INC(MONITOR_DEADLOCK); - break; } else if (victim_trx != 0 && victim_trx != trx) { @@ -7436,6 +7434,8 @@ DeadlockChecker::check_and_resolve(const lock_t* lock, const trx_t* trx) print("*** WE ROLL BACK TRANSACTION (2)\n"); lock_deadlock_found = true; + + MONITOR_INC(MONITOR_DEADLOCK); } return(victim_trx);