List:Commits« Previous MessageNext Message »
From:marko.makela Date:May 18 2011 12:05pm
Subject:bzr commit into mysql-5.5-innodb branch (marko.makela:3380) Bug#59641
Bug#11766513
View as plain text  
#At file:///home/marko/innobase/dev/mysql2a/5.5-innodb/ based on revid:marko.makela@strippede24qzxqkzep4

 3380 Marko Mäkelä	2011-05-18
      Fix a bogus UNIV_SYNC_DEBUG failure in the fix of Bug #59641
      or Oracle Bug #11766513.
      
      trx_undo_free_prepared(): Do not acquire or release trx->rseg->mutex.
      This code is invoked in the single-threaded part of shutdown, therefore
      a mutex is not needed.

    modified:
      storage/innobase/trx/trx0undo.c
=== modified file 'storage/innobase/trx/trx0undo.c'
--- a/storage/innobase/trx/trx0undo.c	revid:marko.makela@stripped17121555-lmple24qzxqkzep4
+++ b/storage/innobase/trx/trx0undo.c	revid:marko.makela@strippedz814vn77v5k
@@ -1985,8 +1985,6 @@ trx_undo_free_prepared(
 /*===================*/
 	trx_t*	trx)	/*!< in/out: PREPARED transaction */
 {
-	mutex_enter(&trx->rseg->mutex);
-
 	ut_ad(srv_shutdown_state == SRV_SHUTDOWN_EXIT_THREADS);
 
 	if (trx->update_undo) {
@@ -2001,6 +1999,5 @@ trx_undo_free_prepared(
 			       trx->insert_undo);
 		trx_undo_mem_free(trx->insert_undo);
 	}
-	mutex_exit(&trx->rseg->mutex);
 }
 #endif /* !UNIV_HOTBACKUP */

Attachment: [text/bzr-bundle] bzr/marko.makela@oracle.com-20110518120508-qhn7vz814vn77v5k.bundle
Thread
bzr commit into mysql-5.5-innodb branch (marko.makela:3380) Bug#59641Bug#11766513marko.makela19 May