List:Commits« Previous MessageNext Message »
From:Magnus Svensson Date:July 25 2008 6:03pm
Subject:bzr commit into mysql-5.1-telco-6.4 branch (msvensson:2681)
View as plain text  
#At file:///data/msvensson/mysql/5.1-telco-6.4/

 2681 Magnus Svensson	2008-07-25
      Use require instead of assert for code that should be run also in release
modified:
  storage/ndb/src/mgmsrv/InitConfigFileParser.cpp

=== modified file 'storage/ndb/src/mgmsrv/InitConfigFileParser.cpp'
--- a/storage/ndb/src/mgmsrv/InitConfigFileParser.cpp	2008-06-10 20:06:47 +0000
+++ b/storage/ndb/src/mgmsrv/InitConfigFileParser.cpp	2008-07-25 16:03:09 +0000
@@ -318,7 +318,7 @@ InitConfigFileParser::storeNameValuePair
       ctx.reportError("Illegal boolean value for parameter %s", fname);
       return false;
     }
-    assert(ctx.m_currentSection->put(pname, value_bool));
+    require(ctx.m_currentSection->put(pname, value_bool));
     break;
   }
   case ConfigInfo::CI_INT:
@@ -336,14 +336,14 @@ InitConfigFileParser::storeNameValuePair
       return false;
     }
     if(type == ConfigInfo::CI_INT){
-      assert(ctx.m_currentSection->put(pname, (Uint32)value_int));
+      require(ctx.m_currentSection->put(pname, (Uint32)value_int));
     } else {
-      assert(ctx.m_currentSection->put64(pname, value_int));
+      require(ctx.m_currentSection->put64(pname, value_int));
     }
     break;
   }
   case ConfigInfo::CI_STRING:
-    assert(ctx.m_currentSection->put(pname, value));
+    require(ctx.m_currentSection->put(pname, value));
     break;
   case ConfigInfo::CI_SECTION:
     abort();

Thread
bzr commit into mysql-5.1-telco-6.4 branch (msvensson:2681) Magnus Svensson25 Jul