List:Commits« Previous MessageNext Message »
From:Magnus Blåudd Date:October 9 2009 2:38pm
Subject:bzr commit into mysql-5.1-telco-7.0 branch (magnus.blaudd:3107)
Bug#47932
View as plain text  
#At file:///home/msvensson/mysql/7.0/ based on revid:magnus.blaudd@strippedcd067defpq

 3107 Magnus Blåudd	2009-10-09
      Bug#47932 ndb_mgmd, fails to parse config with DiskSyncSize=4294967040
       - The printout of unsigned 64bit values was using non standard %Lu, changed it
         to %llu

    modified:
      storage/ndb/src/mgmsrv/InitConfigFileParser.cpp
=== modified file 'storage/ndb/src/mgmsrv/InitConfigFileParser.cpp'
--- a/storage/ndb/src/mgmsrv/InitConfigFileParser.cpp	2009-10-06 14:24:04 +0000
+++ b/storage/ndb/src/mgmsrv/InitConfigFileParser.cpp	2009-10-09 12:38:45 +0000
@@ -332,9 +332,9 @@ InitConfigFileParser::storeNameValuePair
     }
     if (!m_info->verify(ctx.m_currentInfo, fname, value_int)) {
       ctx.reportError("Illegal value %s for parameter %s.\n"
-		      "Legal values are between %Lu and %Lu", value, fname,
-		      m_info->getMin(ctx.m_currentInfo, fname), 
-		      m_info->getMax(ctx.m_currentInfo, fname));
+                      "Legal values are between %llu and %llu", value, fname,
+                      m_info->getMin(ctx.m_currentInfo, fname),
+                      m_info->getMax(ctx.m_currentInfo, fname));
       return false;
     }
     if(type == ConfigInfo::CI_INT){
@@ -664,12 +664,12 @@ InitConfigFileParser::store_in_propertie
 
       const char * fname = options[i].name;
       if (!m_info->verify(ctx.m_currentInfo, fname, value_int)) {
-	ctx.reportError("Illegal value %lld for parameter %s.\n"
-			"Legal values are between %Lu and %Lu", 
-			value_int, fname,
-			m_info->getMin(ctx.m_currentInfo, fname), 
-			m_info->getMax(ctx.m_currentInfo, fname));
-	return false;
+        ctx.reportError("Illegal value %llu for parameter %s.\n"
+                        "Legal values are between %llu and %llu",
+                        value_int, fname,
+                        m_info->getMin(ctx.m_currentInfo, fname),
+                        m_info->getMax(ctx.m_currentInfo, fname));
+        return false;
       }
 
       ConfigInfo::Status status = m_info->getStatus(ctx.m_currentInfo, fname);

Attachment: [text/bzr-bundle] bzr/magnus.blaudd@sun.com-20091009123845-4kqr35qenx1t4dwh.bundle
Thread
bzr commit into mysql-5.1-telco-7.0 branch (magnus.blaudd:3107)Bug#47932Magnus Blåudd9 Oct