List:Commits« Previous MessageNext Message »
From:Jonas Oreland Date:April 7 2011 10:55am
Subject:bzr commit into mysql-5.1-telco-7.0 branch (jonas:4293)
View as plain text  
#At file:///home/jonas/src/telco-7.0/ based on revid:jonas@stripped

 4293 Jonas Oreland	2011-04-07
      ndb - fix rare ndb_mgmd core-dump on sol10-sparc-a due to trying to print a null-pointer. See in e.g ndb_alter_table_online

    modified:
      storage/ndb/src/mgmsrv/Services.cpp
=== modified file 'storage/ndb/src/mgmsrv/Services.cpp'
--- a/storage/ndb/src/mgmsrv/Services.cpp	2011-03-28 09:01:03 +0000
+++ b/storage/ndb/src/mgmsrv/Services.cpp	2011-04-07 10:55:42 +0000
@@ -430,11 +430,16 @@ MgmApiSession::runSession()
 
       if (msg){
         g_eventLogger->debug("%s: %s, '%s'",
-                             name(), msg, ctx.m_currentToken);
+                             name(),
+                             msg,
+                             ctx.m_currentToken != 0 ?
+                             ctx.m_currentToken : "<NULL>");
 
         // Send result to client
         m_output->println("result: %s, '%s'",
-                          msg, ctx.m_currentToken);
+                          msg,
+                          ctx.m_currentToken != 0 ?
+                          ctx.m_currentToken : "<NULL>");
         m_output->print("\n");
       }
     }


Attachment: [text/bzr-bundle] bzr/jonas@mysql.com-20110407105542-wgat255j0q21tzur.bundle
Thread
bzr commit into mysql-5.1-telco-7.0 branch (jonas:4293) Jonas Oreland7 Apr