Commit cdce8b10 authored by jonas@perch.ndb.mysql.com's avatar jonas@perch.ndb.mysql.com

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

into  perch.ndb.mysql.com:/home/jonas/src/mysql-5.0
parents d8d17559 92581183
...@@ -8252,11 +8252,20 @@ void Dbdih::openingTableErrorLab(Signal* signal, FileRecordPtr filePtr) ...@@ -8252,11 +8252,20 @@ void Dbdih::openingTableErrorLab(Signal* signal, FileRecordPtr filePtr)
/* WE FAILED IN OPENING A FILE. IF THE FIRST FILE THEN TRY WITH THE */ /* WE FAILED IN OPENING A FILE. IF THE FIRST FILE THEN TRY WITH THE */
/* DUPLICATE FILE, OTHERWISE WE REPORT AN ERROR IN THE SYSTEM RESTART. */ /* DUPLICATE FILE, OTHERWISE WE REPORT AN ERROR IN THE SYSTEM RESTART. */
/* ---------------------------------------------------------------------- */ /* ---------------------------------------------------------------------- */
ndbrequire(filePtr.i == tabPtr.p->tabFile[0]); if (filePtr.i == tabPtr.p->tabFile[0])
filePtr.i = tabPtr.p->tabFile[1]; {
ptrCheckGuard(filePtr, cfileFileSize, fileRecord); filePtr.i = tabPtr.p->tabFile[1];
openFileRw(signal, filePtr); ptrCheckGuard(filePtr, cfileFileSize, fileRecord);
filePtr.p->reqStatus = FileRecord::OPENING_TABLE; openFileRw(signal, filePtr);
filePtr.p->reqStatus = FileRecord::OPENING_TABLE;
}
else
{
char buf[256];
BaseString::snprintf(buf, "Error opening DIH schema files for table: %d",
tabPtr.i);
progError(__LINE__, NDBD_EXIT_AFS_NO_SUCH_FILE, buf);
}
}//Dbdih::openingTableErrorLab() }//Dbdih::openingTableErrorLab()
void Dbdih::readingTableLab(Signal* signal, FileRecordPtr filePtr) void Dbdih::readingTableLab(Signal* signal, FileRecordPtr filePtr)
......
...@@ -12579,19 +12579,17 @@ void Dblqh::lastWriteInFileLab(Signal* signal) ...@@ -12579,19 +12579,17 @@ void Dblqh::lastWriteInFileLab(Signal* signal)
void Dblqh::writePageZeroLab(Signal* signal) void Dblqh::writePageZeroLab(Signal* signal)
{ {
if (false && logPartPtr.p->logPartState == LogPartRecord::FILE_CHANGE_PROBLEM) if (logPartPtr.p->logPartState == LogPartRecord::FILE_CHANGE_PROBLEM)
{ {
if (logPartPtr.p->firstLogQueue == RNIL) if (logPartPtr.p->firstLogQueue == RNIL)
{ {
jam(); jam();
logPartPtr.p->logPartState = LogPartRecord::IDLE; logPartPtr.p->logPartState = LogPartRecord::IDLE;
ndbout_c("resetting logPartState to IDLE");
} }
else else
{ {
jam(); jam();
logPartPtr.p->logPartState = LogPartRecord::ACTIVE; logPartPtr.p->logPartState = LogPartRecord::ACTIVE;
ndbout_c("resetting logPartState to ACTIVE");
} }
} }
......
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