Commit 45cbd3c1 authored by unknown's avatar unknown

BUG#22299 mgmd crash due to unchecked TransporterFacade::ThreadData expand()

abort if we ever fail to expand a Vector


ndb/include/util/Vector.hpp:
  abort on failure to allocate memory
parent 18f66e02
......@@ -94,6 +94,8 @@ void
Vector<T>::push_back(const T & t){
if(m_size == m_arraySize){
T * tmp = new T [m_arraySize + m_incSize];
if(!tmp)
abort();
for (unsigned k = 0; k < m_size; k++)
tmp[k] = m_items[k];
delete[] m_items;
......
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