File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1636,10 +1636,10 @@ innobase_start_or_create_for_mysql()
1636
1636
/* Do not allocate too large of a buffer pool on
1637
1637
Windows 32-bit systems, which can have trouble
1638
1638
allocating larger single contiguous memory blocks. */
1639
+ srv_buf_pool_size = static_cast <ulint>(ut_uint64_align_up (srv_buf_pool_size, srv_buf_pool_chunk_unit));
1639
1640
srv_buf_pool_instances = ut_min (
1640
1641
static_cast <ulong>(MAX_BUFFER_POOLS),
1641
- static_cast <ulong>(srv_buf_pool_size
1642
- / (128 * 1024 * 1024 )));
1642
+ static_cast <ulong>(srv_buf_pool_size / srv_buf_pool_chunk_unit));
1643
1643
#else /* defined(_WIN32) && !defined(_WIN64) */
1644
1644
/* Default to 8 instances when size > 1GB. */
1645
1645
srv_buf_pool_instances = 8 ;
You can’t perform that action at this time.
0 commit comments