Commit 61b529a9 authored by sunny's avatar sunny

branches/zip: A small buffer pool size (currently defined as 5M) in a

debug build leads to deadlocks. Print a warning at startup.

See issue:43
parent 6fefe3bb
......@@ -1237,6 +1237,19 @@ innobase_start_or_create_for_mysql(void)
return(DB_ERROR);
}
#ifdef UNIV_DEBUG
/* We have observed deadlocks with a 5MB buffer pool but
the actual lower limit could very well be a little higher. */
if (srv_buf_pool_size <= 5 * 1024 * 1024) {
fprintf(stderr, "InnoDB: Warning: Small buffer pool size "
"(%luM), the flst_validate() debug function "
"can cause a deadlock if the buffer pool fills up.\n",
srv_buf_pool_size / 1024 / 1024);
}
#endif
fsp_init();
log_init();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment