mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
ndb - debug stuff in LQH
storage/ndb/src/kernel/blocks/dblqh/DblqhMain.cpp: dont mess up signal log, also changed w+ to a
This commit is contained in:
parent
c1d9764ce6
commit
8154ca618b
1 changed files with 9 additions and 2 deletions
|
@ -498,6 +498,7 @@ void Dblqh::execSTTOR(Signal* signal)
|
|||
csignalKey = signal->theData[6];
|
||||
#if defined VM_TRACE || defined ERROR_INSERT || defined NDBD_TRACENR
|
||||
char *name;
|
||||
FILE *out = 0;
|
||||
#endif
|
||||
switch (tstartPhase) {
|
||||
case ZSTART_PHASE1:
|
||||
|
@ -509,8 +510,14 @@ void Dblqh::execSTTOR(Signal* signal)
|
|||
sendsttorryLab(signal);
|
||||
|
||||
#if defined VM_TRACE || defined ERROR_INSERT || defined NDBD_TRACENR
|
||||
name = NdbConfig_SignalLogFileName(getOwnNodeId());
|
||||
tracenrout = new NdbOut(* new FileOutputStream(fopen(name, "w+")));
|
||||
#ifdef VM_TRACE
|
||||
out = globalSignalLoggers.getOutputStream();
|
||||
#endif
|
||||
if (out == 0) {
|
||||
name = NdbConfig_SignalLogFileName(getOwnNodeId());
|
||||
out = fopen(name, "a");
|
||||
}
|
||||
tracenrout = new NdbOut(* new FileOutputStream(out));
|
||||
#endif
|
||||
|
||||
#ifdef ERROR_INSERT
|
||||
|
|
Loading…
Reference in a new issue