Commit 67e2a864 authored by unknown's avatar unknown

ndb - gcp stop bug#9961 more printouts


ndb/src/kernel/blocks/dbdih/DbdihMain.cpp:
  bug#9961 more printouts
ndb/src/kernel/blocks/dblqh/DblqhMain.cpp:
  bug#9961 more printouts
parent 7d17ed43
...@@ -10316,6 +10316,24 @@ void Dbdih::crashSystemAtGcpStop(Signal* signal) ...@@ -10316,6 +10316,24 @@ void Dbdih::crashSystemAtGcpStop(Signal* signal)
break; break;
} }
ndbout_c("c_copyGCISlave: sender{Data, Ref} %d %x reason: %d nextWord: %d",
c_copyGCISlave.m_senderData,
c_copyGCISlave.m_senderRef,
c_copyGCISlave.m_copyReason,
c_copyGCISlave.m_expectedNextWord);
FileRecordPtr file0Ptr;
file0Ptr.i = crestartInfoFile[0];
ptrCheckGuard(file0Ptr, cfileFileSize, fileRecord);
FileRecordPtr file1Ptr;
file1Ptr.i = crestartInfoFile[1];
ptrCheckGuard(file1Ptr, cfileFileSize, fileRecord);
ndbout_c("file[0] status: %d type: %d reqStatus: %d file1: %d %d %d",
file0Ptr.p->fileStatus, file0Ptr.p->fileType, file0Ptr.p->reqStatus,
file1Ptr.p->fileStatus, file1Ptr.p->fileType, file1Ptr.p->reqStatus
);
ndbout_c("c_COPY_GCIREQ_Counter = %s", ndbout_c("c_COPY_GCIREQ_Counter = %s",
c_COPY_GCIREQ_Counter.getText()); c_COPY_GCIREQ_Counter.getText());
ndbout_c("c_COPY_TABREQ_Counter = %s", ndbout_c("c_COPY_TABREQ_Counter = %s",
......
...@@ -18555,15 +18555,16 @@ Dblqh::execDUMP_STATE_ORD(Signal* signal) ...@@ -18555,15 +18555,16 @@ Dblqh::execDUMP_STATE_ORD(Signal* signal)
{ {
logPartPtr.i = i; logPartPtr.i = i;
ptrCheckGuard(logPartPtr, clogPartFileSize, logPartRecord); ptrCheckGuard(logPartPtr, clogPartFileSize, logPartRecord);
ndbout_c("LP %d state: %d WW_Gci: %d gcprec: %d flq: %d currfile: %d tailFileNo: %d", ndbout_c("LP %d state: %d WW_Gci: %d gcprec: %d flq: %d currfile: %d tailFileNo: %d logTailMbyte: %d",
i, i,
logPartPtr.p->logPartState, logPartPtr.p->logPartState,
logPartPtr.p->waitWriteGciLog, logPartPtr.p->waitWriteGciLog,
logPartPtr.p->gcprec, logPartPtr.p->gcprec,
logPartPtr.p->firstLogQueue, logPartPtr.p->firstLogQueue,
logPartPtr.p->currentLogfile, logPartPtr.p->currentLogfile,
logPartPtr.p->logTailFileNo); logPartPtr.p->logTailFileNo,
logPartPtr.p->logTailMbyte);
if(gcp.i == RNIL && logPartPtr.p->gcprec != RNIL) if(gcp.i == RNIL && logPartPtr.p->gcprec != RNIL)
gcp.i = logPartPtr.p->gcprec; gcp.i = logPartPtr.p->gcprec;
...@@ -18572,11 +18573,13 @@ Dblqh::execDUMP_STATE_ORD(Signal* signal) ...@@ -18572,11 +18573,13 @@ Dblqh::execDUMP_STATE_ORD(Signal* signal)
do do
{ {
ptrCheckGuard(logFilePtr, clogFileFileSize, logFileRecord); ptrCheckGuard(logFilePtr, clogFileFileSize, logFileRecord);
ndbout_c(" file %d(%d) FileChangeState: %d logFileStatus: %d", ndbout_c(" file %d(%d) FileChangeState: %d logFileStatus: %d currentMbyte: %d currentFilepage",
logFilePtr.p->fileNo, logFilePtr.p->fileNo,
logFilePtr.i, logFilePtr.i,
logFilePtr.p->fileChangeState, logFilePtr.p->fileChangeState,
logFilePtr.p->logFileStatus); logFilePtr.p->logFileStatus,
logFilePtr.p->currentMbyte,
logFilePtr.p->currentFilepage);
logFilePtr.i = logFilePtr.p->nextLogFile; logFilePtr.i = logFilePtr.p->nextLogFile;
} while(logFilePtr.i != first); } while(logFilePtr.i != first);
} }
...@@ -18586,9 +18589,11 @@ Dblqh::execDUMP_STATE_ORD(Signal* signal) ...@@ -18586,9 +18589,11 @@ Dblqh::execDUMP_STATE_ORD(Signal* signal)
ptrCheckGuard(gcp, cgcprecFileSize, gcpRecord); ptrCheckGuard(gcp, cgcprecFileSize, gcpRecord);
for(i = 0; i<4; i++) for(i = 0; i<4; i++)
{ {
ndbout_c(" GCP %d file: %d state: %d sync: %d", ndbout_c(" GCP %d file: %d state: %d sync: %d page: %d word: %d",
i, gcp.p->gcpFilePtr[i], gcp.p->gcpLogPartState[i], i, gcp.p->gcpFilePtr[i], gcp.p->gcpLogPartState[i],
gcp.p->gcpSyncReady[i]); gcp.p->gcpSyncReady[i],
gcp.p->gcpPageNo[i],
gcp.p->gcpWordNo[i]);
} }
} }
......
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