Commit ea3569af authored by unknown's avatar unknown

add error code to ndb require

parent 10e3a96e
...@@ -1098,8 +1098,9 @@ void Dbdict::readSchemaConf(Signal* signal, ...@@ -1098,8 +1098,9 @@ void Dbdict::readSchemaConf(Signal* signal,
n, reason, sf->FileSize, sf0->FileSize, sf->PageNumber); n, reason, sf->FileSize, sf0->FileSize, sf->PageNumber);
if (crashInd) if (crashInd)
progError(__LINE__, NDBD_EXIT_SR_SCHEMAFILE, reason_msg); progError(__LINE__, NDBD_EXIT_SR_SCHEMAFILE, reason_msg);
ndbrequireErr(fsPtr.p->fsState == FsConnectRecord::READ_SCHEMA1,
NDBD_EXIT_SR_SCHEMAFILE);
jam(); jam();
ndbrequire(fsPtr.p->fsState == FsConnectRecord::READ_SCHEMA1);
infoEvent("primary %s, trying backup", reason_msg); infoEvent("primary %s, trying backup", reason_msg);
readSchemaRef(signal, fsPtr); readSchemaRef(signal, fsPtr);
return; return;
......
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