From: Date: October 10 2005 12:25pm Subject: bk commit into 5.0 tree (tomas:1.2025) BUG#13611 List-Archive: http://lists.mysql.com/internals/30849 X-Bug: 13611 Message-Id: <20051010102539.660F31F3123@poseidon.mysql.com> Below is the list of changes that have just been committed into a local 5.0 repository of tomas. When tomas 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.2025 05/10/10 12:25:29 tomas@stripped +1 -0 Bug #13611 double [TCP DEFAULT] in config.ini crashes ndb_mgmd - Added error printout and nice exit for duplicate default sections ndb/src/mgmsrv/InitConfigFileParser.cpp 1.24 05/10/10 12:25:22 tomas@stripped +6 -2 Bug #13611 double [TCP DEFAULT] in config.ini crashes ndb_mgmd - Added error printout and nice exit for duplicate default sections # 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: tomas # Host: poseidon.ndb.mysql.com # Root: /home/tomas/mysql-5.0 --- 1.23/ndb/src/mgmsrv/InitConfigFileParser.cpp 2005-10-03 11:49:00 +02:00 +++ 1.24/ndb/src/mgmsrv/InitConfigFileParser.cpp 2005-10-10 12:25:22 +02:00 @@ -565,8 +565,12 @@ } } } - if(ctx.type == InitConfigFileParser::DefaultSection) - require(ctx.m_defaults->put(ctx.pname, ctx.m_currentSection)); + if(ctx.type == InitConfigFileParser::DefaultSection && + !ctx.m_defaults->put(ctx.pname, ctx.m_currentSection)) + { + ctx.reportError("Duplicate default section not allowed"); + return false; + } if(ctx.type == InitConfigFileParser::Section) require(ctx.m_config->put(ctx.pname, ctx.m_currentSection)); delete ctx.m_currentSection; ctx.m_currentSection = NULL;