summaryrefslogtreecommitdiff
path: root/storage
diff options
context:
space:
mode:
authorunknown <pekka@orca.ndb.mysql.com>2006-07-10 15:43:47 +0200
committerunknown <pekka@orca.ndb.mysql.com>2006-07-10 15:43:47 +0200
commit8154ca618b68784098dcb8b84ba2cf77707c80e4 (patch)
treebf9f2c9e92ee7179ccdfd8bca7541bda6f922f08 /storage
parentc1d9764ce64172c7a247f2d0bdc69bfbac50ec89 (diff)
downloadmariadb-git-8154ca618b68784098dcb8b84ba2cf77707c80e4.tar.gz
ndb - debug stuff in LQH
storage/ndb/src/kernel/blocks/dblqh/DblqhMain.cpp: dont mess up signal log, also changed w+ to a
Diffstat (limited to 'storage')
-rw-r--r--storage/ndb/src/kernel/blocks/dblqh/DblqhMain.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/storage/ndb/src/kernel/blocks/dblqh/DblqhMain.cpp b/storage/ndb/src/kernel/blocks/dblqh/DblqhMain.cpp
index 702cde0fddc..695580d556c 100644
--- a/storage/ndb/src/kernel/blocks/dblqh/DblqhMain.cpp
+++ b/storage/ndb/src/kernel/blocks/dblqh/DblqhMain.cpp
@@ -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