Commit 53b1792e authored by unknown's avatar unknown
Browse files

ndb - bug#23494

    Fix bug in restore with table with many columns, Compute size of databuffer pool correctly

parent d54d43b6
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -173,7 +173,12 @@ Restore::execREAD_CONFIG_REQ(Signal* signal)
  }
#endif
  m_file_pool.setSize(1);
  m_databuffer_pool.setSize((1*128+PAGES+List::getSegmentSize()-1)/List::getSegmentSize());
  Uint32 cnt = 2*MAX_ATTRIBUTES_IN_TABLE;
  cnt += PAGES;
  cnt += List::getSegmentSize()-1;
  cnt /= List::getSegmentSize();
  cnt += 2;
  m_databuffer_pool.setSize(cnt);
  
  ReadConfigConf * conf = (ReadConfigConf*)signal->getDataPtrSend();
  conf->senderRef = reference();