mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 11:01:52 +01:00
BUG#25743 If undo_buffer_size (for LG) greater than the inital shared memory (default 20M), ndbd nodes are crashed
This commit is contained in:
parent
f6845d1423
commit
451a8b7772
1 changed files with 5 additions and 2 deletions
|
@ -307,8 +307,11 @@ RecordPool<T, P>::seize(Ptr<T> & ptr)
|
|||
{
|
||||
Ptr<void> tmp;
|
||||
bool ret = m_pool.seize(tmp);
|
||||
ptr.i = tmp.i;
|
||||
ptr.p = static_cast<T*>(tmp.p);
|
||||
if(likely(ret))
|
||||
{
|
||||
ptr.i = tmp.i;
|
||||
ptr.p = static_cast<T*>(tmp.p);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue