BUG#25743 If undo_buffer_size (for LG) greater than the inital shared memory (default 20M),

          ndbd nodes are crashed
parent d4b29bf4
...@@ -307,8 +307,11 @@ RecordPool<T, P>::seize(Ptr<T> & ptr) ...@@ -307,8 +307,11 @@ RecordPool<T, P>::seize(Ptr<T> & ptr)
{ {
Ptr<void> tmp; Ptr<void> tmp;
bool ret = m_pool.seize(tmp); bool ret = m_pool.seize(tmp);
ptr.i = tmp.i; if(likely(ret))
ptr.p = static_cast<T*>(tmp.p); {
ptr.i = tmp.i;
ptr.p = static_cast<T*>(tmp.p);
}
return ret; return ret;
} }
......
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