--- /tmp/mysql-5.1.48/storage/innodb_plugin/fil/fil0fil.c 2010-06-03 23:50:08.000000000 +0800 +++ storage/innodb_plugin/fil/fil0fil.c 2011-08-11 00:23:31.000000000 +0800 @@ -938,8 +938,24 @@ mutex_exit(&fil_system->mutex); + +#ifndef UNIV_HOTBACKUP + /* Wake the i/o-handler threads to make sure pending i/o's are + performed */ + os_aio_simulated_wake_handler_threads(); + os_thread_sleep(20000); + /* Flush tablespaces so that we can close modified files in the LRU + list */ + + fil_flush_file_spaces(FIL_TABLESPACE); +#else + + os_thread_sleep(20000); +#endif + + count2++; goto retry; @@ -2457,6 +2473,11 @@ fputs(" to ", stderr); ut_print_filename(stderr, new_name); fprintf(stderr, ", %lu iterations\n", (ulong) count); + if (node) + fprintf(stderr, "node info: n_pending=%lu, n_pending_flushes=%lu" + " modification_counter=%lu, flush_counter=%lu\n", + node->n_pending, node->n_pending_flushes, node->modification_counter, + node->flush_counter); } mutex_enter(&fil_system->mutex);