mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 02:51:44 +01:00
ndb - bug#30172
Backup can assert with "big" table definitions Correct condition before fetching next meta-table Increase meta-buffer, to cope with atleast 2 tables
This commit is contained in:
parent
f4d6dd7135
commit
0c03b509eb
2 changed files with 9 additions and 7 deletions
|
@ -374,15 +374,17 @@ Backup::execCONTINUEB(Signal* signal)
|
|||
ptr.p->files.getPtr(filePtr, ptr.p->ctlFilePtr);
|
||||
FsBuffer & buf = filePtr.p->operation.dataBuffer;
|
||||
|
||||
if(buf.getFreeSize() + buf.getMinRead() < buf.getUsableSize()) {
|
||||
if(buf.getFreeSize() < buf.getMaxWrite()) {
|
||||
jam();
|
||||
TablePtr tabPtr LINT_SET_PTR;
|
||||
c_tablePool.getPtr(tabPtr, Tdata2);
|
||||
|
||||
DEBUG_OUT("Backup - Buffer full - " << buf.getFreeSize()
|
||||
<< " + " << buf.getMinRead()
|
||||
<< " < " << buf.getUsableSize()
|
||||
<< " - tableId = " << tabPtr.p->tableId);
|
||||
DEBUG_OUT("Backup - Buffer full - "
|
||||
<< buf.getFreeSize()
|
||||
<< " < " << buf.getMaxWrite()
|
||||
<< " (sz: " << buf.getUsableSize()
|
||||
<< " getMinRead: " << buf.getMinRead()
|
||||
<< ") - tableId = " << tabPtr.p->tableId);
|
||||
|
||||
signal->theData[0] = BackupContinueB::BUFFER_FULL_META;
|
||||
signal->theData[1] = Tdata1;
|
||||
|
|
|
@ -518,7 +518,7 @@ public:
|
|||
Uint32 m_diskless;
|
||||
|
||||
STATIC_CONST(NO_OF_PAGES_META_FILE =
|
||||
(MAX_WORDS_META_FILE + BACKUP_WORDS_PER_PAGE - 1) /
|
||||
(2*MAX_WORDS_META_FILE + BACKUP_WORDS_PER_PAGE - 1) /
|
||||
BACKUP_WORDS_PER_PAGE);
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue