Commit 6e7adf7c authored by unknown's avatar unknown

bug#13966 - ndb

  better error message on invalid config change


ndb/src/kernel/blocks/dbdict/Dbdict.cpp:
  fix typo
ndb/src/kernel/blocks/dblqh/DblqhMain.cpp:
  Change error message...note that this is a guess
parent 42cb2c60
...@@ -2402,7 +2402,7 @@ Dbdict::restartCreateTab_readTableConf(Signal* signal, ...@@ -2402,7 +2402,7 @@ Dbdict::restartCreateTab_readTableConf(Signal* signal,
char buf[255]; char buf[255];
BaseString::snprintf(buf, sizeof(buf), BaseString::snprintf(buf, sizeof(buf),
"Unable to restart, fail while creating table %d" "Unable to restart, fail while creating table %d"
" error: %d. Most likely change of configution", " error: %d. Most likely change of configuration",
c_readTableRecord.tableId, c_readTableRecord.tableId,
parseRecord.errorCode); parseRecord.errorCode);
progError(__LINE__, progError(__LINE__,
......
...@@ -16096,8 +16096,22 @@ void Dblqh::findLogfile(Signal* signal, ...@@ -16096,8 +16096,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