~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to fix_innodb_for_backup.patch

suppress purge when --stats

Show diffs side-by-side

added added

removed removed

Lines of Context:
718
718
        }
719
719
 
720
720
        /* Check that os_fast_mutexes work as expected */
 
721
diff -ru a/innobase/trx/trx0purge.c b/innobase/trx/trx0purge.c
 
722
--- a/innobase/trx/trx0purge.c  2008-12-19 02:19:37.000000000 +0900
 
723
+++ b/innobase/trx/trx0purge.c  2009-09-10 15:34:51.000000000 +0900
 
724
@@ -1043,6 +1043,9 @@
 
725
 /*     que_thr_t*      thr2; */
 
726
        ulint           old_pages_handled;
 
727
 
 
728
+       if (srv_fake_write)
 
729
+               return(0);
 
730
+
 
731
        mutex_enter(&(purge_sys->mutex));
 
732
 
 
733
        if (purge_sys->trx->n_active_thrs > 0) {
721
734
diff -ru a/innobase/trx/trx0trx.c b/innobase/trx/trx0trx.c
722
735
--- a/innobase/trx/trx0trx.c    2008-12-19 02:19:37.000000000 +0900
723
736
+++ b/innobase/trx/trx0trx.c    2009-07-03 13:25:13.000000000 +0900