File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -3731,7 +3731,7 @@ static void innodb_buffer_pool_size_init()
3731
3731
{
3732
3732
/* Size unit of buffer pool is larger than srv_buf_pool_size.
3733
3733
adjust srv_buf_pool_chunk_unit for srv_buf_pool_size. */
3734
- srv_buf_pool_chunk_unit = ulong( srv_buf_pool_size) ;
3734
+ srv_buf_pool_chunk_unit = srv_buf_pool_size;
3735
3735
}
3736
3736
else if (srv_buf_pool_chunk_unit == 0)
3737
3737
{
@@ -20817,7 +20817,7 @@ innodb_buffer_pool_size_validate(
20817
20817
push_warning_printf(thd, Sql_condition::WARN_LEVEL_WARN,
20818
20818
ER_WRONG_ARGUMENTS,
20819
20819
"innodb_buffer_pool_size must be at least"
20820
- " innodb_buffer_pool_chunk_size=%lu ",
20820
+ " innodb_buffer_pool_chunk_size=%zu ",
20821
20821
srv_buf_pool_chunk_unit);
20822
20822
/* nothing to do */
20823
20823
return(0);
@@ -21162,12 +21162,12 @@ ulint
21162
21162
buf_pool_size_align(
21163
21163
ulint size)
21164
21164
{
21165
- const ulong m = srv_buf_pool_chunk_unit;
21166
- size = ut_max((size_t) size, (size_t) MYSQL_SYSVAR_NAME(buffer_pool_size).min_val);
21165
+ const size_t m = srv_buf_pool_chunk_unit;
21166
+ size = ut_max(size, (size_t) MYSQL_SYSVAR_NAME(buffer_pool_size).min_val);
21167
21167
21168
21168
if (size % m == 0) {
21169
21169
return(size);
21170
21170
} else {
21171
- return (ulint)(( size / m + 1) * m) ;
21171
+ return (size / m + 1) * m;
21172
21172
}
21173
21173
}
You can’t perform that action at this time.
0 commit comments