Commit b76fb8f7 authored by unknown's avatar unknown

BUG#25743 If undo_buffer_size (for LG) greater than the inital shared memory...

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


storage/ndb/src/kernel/vm/Pool.hpp:
  Only when m_pool.seize() return true, the ptr.i and ptr.p is assigned the ri
  ght value, or else the parameter ptr should be "not touched"
parent 690b46cf
...@@ -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