Applying InnoDB snashot 5.1-ss6129
Detailed revision comments: r6123 | jyang | 2009-10-30 05:43:06 +0200 (Fri, 30 Oct 2009) | 8 lines branches/5.1: In os_mem_alloc_large(), if we fail to attach the shared memory, reset memory pointer ptr to NULL, and allocate memory from conventional pool. This is a port from branches/zip. Bug #48237 Error handling in os_mem_alloc_large appears to be incorrect rb://198 Approved by: Marko
This commit is contained in:
parent
c29b740bec
commit
f276d54404
@ -591,6 +591,7 @@ os_mem_alloc_large(
|
|||||||
fprintf(stderr, "InnoDB: HugeTLB: Warning: Failed to"
|
fprintf(stderr, "InnoDB: HugeTLB: Warning: Failed to"
|
||||||
" attach shared memory segment, errno %d\n",
|
" attach shared memory segment, errno %d\n",
|
||||||
errno);
|
errno);
|
||||||
|
ptr = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Remove the shared memory segment so that it will be
|
/* Remove the shared memory segment so that it will be
|
||||||
|
Loading…
x
Reference in New Issue
Block a user