mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 06:44:16 +01:00
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
This commit is contained in:
parent
6fefe3bbdc
commit
61b529a9b5
1 changed files with 13 additions and 0 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue