summaryrefslogtreecommitdiff
path: root/storage/innobase/srv/srv0start.cc
diff options
context:
space:
mode:
authorJan Lindström <jplindst@mariadb.org>2014-02-13 09:13:56 +0200
committerJan Lindström <jplindst@mariadb.org>2014-02-13 09:13:56 +0200
commitd17ecff410180adf96dcd7f261157d52e7f62af2 (patch)
tree35a72c640015a946ab22a9ba7c6ad9a87b2abe6b /storage/innobase/srv/srv0start.cc
parentda927da04def025f91f6d71172d6b525513a6cd7 (diff)
downloadmariadb-git-d17ecff410180adf96dcd7f261157d52e7f62af2.tar.gz
Fixed issue on data dictionary corruption.
Fixed issue on multi-threaded flush at shutdown. Removed unnecessary startup option innodb_compress_pages. Added a new startup option innodb_mtflush_threads, default 8.
Diffstat (limited to 'storage/innobase/srv/srv0start.cc')
-rw-r--r--storage/innobase/srv/srv0start.cc11
1 files changed, 4 insertions, 7 deletions
diff --git a/storage/innobase/srv/srv0start.cc b/storage/innobase/srv/srv0start.cc
index 879b2335720..a469dac8296 100644
--- a/storage/innobase/srv/srv0start.cc
+++ b/storage/innobase/srv/srv0start.cc
@@ -2593,11 +2593,7 @@ files_checked:
if (!srv_read_only_mode) {
- if (srv_buf_pool_instances <= MTFLUSH_MAX_WORKER) {
- srv_mtflush_threads = srv_buf_pool_instances;
- }
- /* else we default to 8 worker-threads */
-
+ /* Start multi-threaded flush threads */
mtflush_ctx = buf_mtflu_handler_init(srv_mtflush_threads,
srv_buf_pool_instances);
@@ -2607,7 +2603,8 @@ files_checked:
(thread_ids + 6 + 32));
#if UNIV_DEBUG
- fprintf(stderr, "%s:%d buf-pool-instances:%lu\n", __FILE__, __LINE__, srv_buf_pool_instances);
+ fprintf(stderr, "InnoDB: Note: %s:%d buf-pool-instances:%lu mtflush_threads %lu\n",
+ __FILE__, __LINE__, srv_buf_pool_instances, srv_mtflush_threads);
#endif
os_thread_create(buf_flush_page_cleaner_thread, NULL, NULL);
@@ -2879,7 +2876,7 @@ innobase_shutdown_for_mysql(void)
buf_mtflu_io_thread_exit();
#ifdef UNIV_DEBUG
- fprintf(stderr, "%s:%d os_thread_count:%lu \n", __FUNCTION__, __LINE__, os_thread_count);
+ fprintf(stderr, "InnoDB: Note: %s:%d os_thread_count:%lu \n", __FUNCTION__, __LINE__, os_thread_count);
#endif
os_mutex_enter(os_sync_mutex);