Comment 1 for bug 1234382

Revision history for this message
Raghavendra D Prabhu (raghavendra-prabhu) wrote :

Following should here:

=== modified file 'Percona-Server/storage/innobase/lock/lock0lock.cc'
--- Percona-Server/storage/innobase/lock/lock0lock.cc 2013-10-03 10:17:48 +0000
+++ Percona-Server/storage/innobase/lock/lock0lock.cc 2013-10-03 10:51:57 +0000
@@ -1607,7 +1607,9 @@
     else
      fputs("\n*** Victim TRANSACTION:\n",
            stderr);
- trx_print(stderr, trx, 3000);
+ mutex_enter(&trx_sys->mutex);
+ trx_print_latched(stderr, trx, 3000);
+ mutex_exit(&trx_sys->mutex);

     if (bf_other)
      fputs("\n*** Priority TRANSACTION:\n",
@@ -1615,7 +1617,9 @@
     else
      fputs("\n*** Victim TRANSACTION:\n",
            stderr);
- trx_print(stderr, lock->trx, 3000);
+ mutex_enter(&trx_sys->mutex);
+ trx_print_latched(stderr, lock->trx, 3000);
+ mutex_exit(&trx_sys->mutex);

     fputs("*** WAITING FOR THIS LOCK TO BE GRANTED:\n",
           stderr);

Need to test on jenkins to see if there are any other conflicts.