Commit be370efa authored by Marko Mäkelä's avatar Marko Mäkelä

Do not declare an unused variable

parent 7b145fae
......@@ -1805,7 +1805,10 @@ lock_rec_enqueue_waiting(
lock_prdt_set_prdt(lock, prdt);
}
if (const trx_t* victim =
if (
#ifdef UNIV_DEBUG
const trx_t* victim =
#endif
DeadlockChecker::check_and_resolve(lock, trx)) {
ut_ad(victim == trx);
lock_reset_lock_and_trx_wait(lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment