Commit 8154ca61 authored by unknown's avatar unknown

ndb - debug stuff in LQH


storage/ndb/src/kernel/blocks/dblqh/DblqhMain.cpp:
  dont mess up signal log, also changed w+ to a
parent c1d9764c
...@@ -498,6 +498,7 @@ void Dblqh::execSTTOR(Signal* signal) ...@@ -498,6 +498,7 @@ void Dblqh::execSTTOR(Signal* signal)
csignalKey = signal->theData[6]; csignalKey = signal->theData[6];
#if defined VM_TRACE || defined ERROR_INSERT || defined NDBD_TRACENR #if defined VM_TRACE || defined ERROR_INSERT || defined NDBD_TRACENR
char *name; char *name;
FILE *out = 0;
#endif #endif
switch (tstartPhase) { switch (tstartPhase) {
case ZSTART_PHASE1: case ZSTART_PHASE1:
...@@ -509,8 +510,14 @@ void Dblqh::execSTTOR(Signal* signal) ...@@ -509,8 +510,14 @@ void Dblqh::execSTTOR(Signal* signal)
sendsttorryLab(signal); sendsttorryLab(signal);
#if defined VM_TRACE || defined ERROR_INSERT || defined NDBD_TRACENR #if defined VM_TRACE || defined ERROR_INSERT || defined NDBD_TRACENR
#ifdef VM_TRACE
out = globalSignalLoggers.getOutputStream();
#endif
if (out == 0) {
name = NdbConfig_SignalLogFileName(getOwnNodeId()); name = NdbConfig_SignalLogFileName(getOwnNodeId());
tracenrout = new NdbOut(* new FileOutputStream(fopen(name, "w+"))); out = fopen(name, "a");
}
tracenrout = new NdbOut(* new FileOutputStream(out));
#endif #endif
#ifdef ERROR_INSERT #ifdef ERROR_INSERT
......
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