mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 20:07:13 +02:00
Portability fixes
This commit is contained in:
parent
03f6fdd575
commit
679e381030
13 changed files with 38 additions and 19 deletions
|
|
@ -78,7 +78,7 @@ ut_malloc_low(
|
|||
fprintf(stderr,
|
||||
"InnoDB: Fatal error: cannot allocate %lu bytes of\n"
|
||||
"InnoDB: memory with malloc! Total allocated memory\n"
|
||||
"InnoDB: by InnoDB %lu bytes. Operating system errno: %lu\n"
|
||||
"InnoDB: by InnoDB %lu bytes. Operating system errno: %d\n"
|
||||
"InnoDB: Cannot continue operation!\n"
|
||||
"InnoDB: Check if you should increase the swap file or\n"
|
||||
"InnoDB: ulimits of your operating system.\n",
|
||||
|
|
@ -155,7 +155,7 @@ ut_free_all_mem(void)
|
|||
|
||||
os_fast_mutex_lock(&ut_list_mutex);
|
||||
|
||||
while (block = UT_LIST_GET_FIRST(ut_mem_block_list)) {
|
||||
while ((block = UT_LIST_GET_FIRST(ut_mem_block_list))) {
|
||||
|
||||
ut_a(block->magic_n == UT_MEM_MAGIC_N);
|
||||
ut_a(ut_total_allocated_memory >= block->size);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue