Commit 53b1792e authored by unknown's avatar unknown

ndb - bug#23494

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

parent d54d43b6
...@@ -173,7 +173,12 @@ Restore::execREAD_CONFIG_REQ(Signal* signal) ...@@ -173,7 +173,12 @@ Restore::execREAD_CONFIG_REQ(Signal* signal)
} }
#endif #endif
m_file_pool.setSize(1); 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(); ReadConfigConf * conf = (ReadConfigConf*)signal->getDataPtrSend();
conf->senderRef = reference(); conf->senderRef = reference();
......
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