mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 19:37:16 +02:00
Bug #27322 failure to allocate transaction_prealloc_size causes crash
Fix for when memory pre-allocation fails. mysys/my_alloc.c: Added code to null-out the pre-alloc pointer if allocation fails. This is necessary for the next time this procedure is called. mysql-test/r/variables-big.result: Added "big" test for bug fix Bug #27322. mysql-test/t/variables-big.test: Added "big" test for bug fix Bug #27322.
This commit is contained in:
parent
52b86a6e0a
commit
53f73da286
5 changed files with 117 additions and 0 deletions
|
|
@ -133,6 +133,10 @@ void reset_root_defaults(MEM_ROOT *mem_root, uint block_size,
|
|||
mem->next= *prev;
|
||||
*prev= mem_root->pre_alloc= mem;
|
||||
}
|
||||
else
|
||||
{
|
||||
mem_root->pre_alloc= 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue