Commit 49bc13bf authored by unknown's avatar unknown

Merge perch.ndb.mysql.com:/home/jonas/src/41-work

into  perch.ndb.mysql.com:/home/jonas/src/50-work


ndb/src/kernel/blocks/dbdict/Dbdict.cpp:
  Auto merged
ndb/src/kernel/blocks/dblqh/DblqhMain.cpp:
  Auto merged
parents b9e1c443 db4d82ba
...@@ -2575,7 +2575,19 @@ Dbdict::restartCreateTab_readTableConf(Signal* signal, ...@@ -2575,7 +2575,19 @@ Dbdict::restartCreateTab_readTableConf(Signal* signal,
Uint32 sz = c_readTableRecord.noOfPages * ZSIZE_OF_PAGES_IN_WORDS; Uint32 sz = c_readTableRecord.noOfPages * ZSIZE_OF_PAGES_IN_WORDS;
SimplePropertiesLinearReader r(&pageRecPtr.p->word[0], sz); SimplePropertiesLinearReader r(&pageRecPtr.p->word[0], sz);
handleTabInfoInit(r, &parseRecord); handleTabInfoInit(r, &parseRecord);
if (parseRecord.errorCode != 0)
{
char buf[255];
BaseString::snprintf(buf, sizeof(buf),
"Unable to restart, fail while creating table %d"
" error: %d. Most likely change of configuration",
c_readTableRecord.tableId,
parseRecord.errorCode);
progError(__LINE__,
ERR_INVALID_CONFIG,
buf);
ndbrequire(parseRecord.errorCode == 0); ndbrequire(parseRecord.errorCode == 0);
}
/* ---------------------------------------------------------------- */ /* ---------------------------------------------------------------- */
// We have read the table description from disk as part of system restart. // We have read the table description from disk as part of system restart.
......
...@@ -16154,8 +16154,22 @@ void Dblqh::findLogfile(Signal* signal, ...@@ -16154,8 +16154,22 @@ void Dblqh::findLogfile(Signal* signal,
}//if }//if
locLogFilePtr.i = locLogFilePtr.p->nextLogFile; locLogFilePtr.i = locLogFilePtr.p->nextLogFile;
loopCount++; loopCount++;
if (loopCount >= flfLogPartPtr.p->noLogFiles &&
getNodeState().startLevel != NodeState::SL_STARTED)
{
goto error;
}
ndbrequire(loopCount < flfLogPartPtr.p->noLogFiles); ndbrequire(loopCount < flfLogPartPtr.p->noLogFiles);
}//while }//while
error:
char buf[255];
BaseString::snprintf(buf, sizeof(buf),
"Unable to restart, failed while reading redo."
" Likely invalid change of configuration");
progError(__LINE__,
ERR_INVALID_CONFIG,
buf);
}//Dblqh::findLogfile() }//Dblqh::findLogfile()
/* ------------------------------------------------------------------------- */ /* ------------------------------------------------------------------------- */
......
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