From 091bc7f56a81cebfc6728a098ed59d4d9ee9abcf Mon Sep 17 00:00:00 2001 From: "heikki@hundin.mysql.fi" <> Date: Thu, 9 Jan 2003 00:29:49 +0200 Subject: [PATCH] buf0buf.c: Add a sanity check awe mem >= buf pool size --- innobase/buf/buf0buf.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/innobase/buf/buf0buf.c b/innobase/buf/buf0buf.c index 4c77a374210..3c6ec424434 100644 --- a/innobase/buf/buf0buf.c +++ b/innobase/buf/buf0buf.c @@ -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