Commit ddd00a77 authored by Alexey Kopytov's avatar Alexey Kopytov

Automerge.

parents 5051100a d39f0a72
...@@ -121,7 +121,7 @@ uchar* my_large_malloc_int(size_t size, myf my_flags) ...@@ -121,7 +121,7 @@ uchar* my_large_malloc_int(size_t size, myf my_flags)
DBUG_ENTER("my_large_malloc_int"); DBUG_ENTER("my_large_malloc_int");
/* Align block size to my_large_page_size */ /* Align block size to my_large_page_size */
size = ((size - 1) & ~(my_large_page_size - 1)) + my_large_page_size; size= MY_ALIGN(size, (size_t) my_large_page_size);
shmid = shmget(IPC_PRIVATE, size, SHM_HUGETLB | SHM_R | SHM_W); shmid = shmget(IPC_PRIVATE, size, SHM_HUGETLB | SHM_R | SHM_W);
if (shmid < 0) if (shmid < 0)
......
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