Commit 493b45e8 authored by Marko Mäkelä's avatar Marko Mäkelä

Fix a bogus debug assertion in the fix of Bug #57707.

buf_pool_init(): Replace ut_ad(n_instances < MAX_BUFFER_POOLS)
with ut_ad(n_instances <= MAX_BUFFER_POOLS).
(Spotted by Michael Izioumtchenko.)
Add ut_ad(n_instances > 0).
parent f933761a
......@@ -1295,7 +1295,8 @@ buf_pool_init(
ulint i;
const ulint size = total_size / n_instances;
ut_ad(n_instances < MAX_BUFFER_POOLS);
ut_ad(n_instances > 0);
ut_ad(n_instances <= MAX_BUFFER_POOLS);
ut_ad(n_instances == srv_buf_pool_instances);
/* We create an extra buffer pool instance, this instance is used
......
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