mirror of
https://github.com/MariaDB/server.git
synced 2025-02-01 03:21:53 +01:00
ndb - bug#23494
Fix bug in restore with table with many columns, Compute size of databuffer pool correctly
This commit is contained in:
parent
07c6a601ea
commit
ff05ba5131
1 changed files with 6 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue