mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
buf0buf.c:
Add a sanity check awe mem >= buf pool size
This commit is contained in:
@ -418,6 +418,15 @@ buf_pool_init(
|
||||
ut_a(max_size == curr_size);
|
||||
ut_a(srv_use_awe || n_frames == max_size);
|
||||
|
||||
if (n_frames > curr_size) {
|
||||
fprintf(stderr,
|
||||
"InnoDB: AWE: Error: you must specify in my.cnf .._awe_mem_mb larger\n"
|
||||
"InnoDB: than .._buffer_pool_size. Now the former is %lu pages,\n"
|
||||
"InnoDB: the latter %lu pages.\n", curr_size, n_frames);
|
||||
|
||||
return(NULL);
|
||||
}
|
||||
|
||||
buf_pool = mem_alloc(sizeof(buf_pool_t));
|
||||
|
||||
/* 1. Initialize general fields
|
||||
|
Reference in New Issue
Block a user