List:Commits« Previous MessageNext Message »
From:Stewart Smith Date:January 19 2006 8:14am
Subject:bk commit into 5.0 tree (stewart:1.1987)
View as plain text  
Below is the list of changes that have just been committed into a local
5.0 repository of stewart. When stewart does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet
  1.1987 06/01/19 19:14:17 stewart@stripped +1 -0
  Merge mysql.com:/home/stewart/Documents/MySQL/5.0/main
  into  mysql.com:/home/stewart/Documents/MySQL/5.0/bug12124

  ndb/src/mgmsrv/MgmtSrvr.cpp
    1.94 06/01/19 19:14:13 stewart@stripped +0 -0
    Auto merged

# This is a BitKeeper patch.  What follows are the unified diffs for the
# set of deltas contained in the patch.  The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User:	stewart
# Host:	willster.(none)
# Root:	/home/stewart/Documents/MySQL/5.0/bug12124/RESYNC

--- 1.93/ndb/src/mgmsrv/MgmtSrvr.cpp	2006-01-18 17:28:47 +11:00
+++ 1.94/ndb/src/mgmsrv/MgmtSrvr.cpp	2006-01-19 19:14:13 +11:00
@@ -182,6 +182,8 @@
   }
   
   const char * tmp;
+  char errStr[100];
+  int err= 0;
   BaseString logdest;
   char *clusterLog= NdbConfig_ClusterLogFileName(_ownNodeId);
   NdbAutoPtr<char> tmp_aptr(clusterLog);
@@ -195,9 +197,17 @@
     logdest.assfmt("FILE:filename=%s,maxsize=1000000,maxfiles=6", 
 		   clusterLog);
   }
-  if(!g_eventLogger.addHandler(logdest)) {
+  errStr[0]='\0';
+  if(!g_eventLogger.addHandler(logdest, &err, sizeof(errStr), errStr)) {
     ndbout << "Warning: could not add log destination \""
-	   << logdest.c_str() << "\"" << endl;
+           << logdest.c_str() << "\". Reason: ";
+    if(err)
+      ndbout << strerror(err);
+    if(err && errStr[0]!='\0')
+      ndbout << ", ";
+    if(errStr[0]!='\0')
+      ndbout << errStr;
+    ndbout << endl;
   }
 }
 
Thread
bk commit into 5.0 tree (stewart:1.1987)Stewart Smith19 Jan