List:Commits« Previous MessageNext Message »
From:Sunny Bains Date:April 14 2011 6:47am
Subject:bzr push into mysql-trunk-innodb branch (Sunny.Bains:3582 to 3583)
View as plain text  
 3583 Sunny Bains	2011-04-14
      A change that was missed as part of Bug 12324092 fix.

    modified:
      storage/innobase/trx/trx0purge.c
 3582 Sunny Bains	2011-04-14
      Bug 12324092 - PURGING SHOULD BE EVENT DRIVEN
      
      In 5.6 the purge thread code has some arbitrary sleeps that aren't working.
      There was a big TODO next to them.
      
      The fix is to make the purge coordinator wakeup mechanism, the same as 5.5.
      
      Added a new monitoring counter: MONITOR_PURGE_INVOKED
      
      rb://642 Approved by: Jimmy Yang.

    modified:
      mysql-test/suite/innodb/r/innodb_monitor.result
      storage/innobase/include/srv0mon.h
      storage/innobase/include/srv0srv.h
      storage/innobase/srv/srv0mon.c
      storage/innobase/srv/srv0srv.c
      storage/innobase/trx/trx0purge.c
=== modified file 'storage/innobase/trx/trx0purge.c'
--- a/storage/innobase/trx/trx0purge.c	revid:sunny.bains@stripped
+++ b/storage/innobase/trx/trx0purge.c	revid:sunny.bains@stripped
@@ -291,9 +291,7 @@ trx_purge_add_update_undo_to_history(
 	rw_lock_x_unlock(&trx_sys->lock);
 #endif /* HAVE_ATOMIC_BUILTINS */
 
-	if (!(trx_sys->rseg_history_len %  srv_purge_batch_size)) {
-		srv_wake_purge_thread_if_not_active();
-	}
+	srv_wake_purge_thread_if_not_active();
 
 	/* Write the trx number to the undo log header */
 	mlog_write_ull(undo_header + TRX_UNDO_TRX_NO, trx->no, mtr);


Attachment: [text/bzr-bundle] bzr/sunny.bains@oracle.com-20110414064638-qp3e46bo8c3tphi3.bundle
Thread
bzr push into mysql-trunk-innodb branch (Sunny.Bains:3582 to 3583) Sunny Bains14 Apr