From: Jan Wedvik Date: May 26 2011 2:46pm Subject: bzr push into mysql-5.1-telco-7.0 branch (jan.wedvik:4423 to 4424) List-Archive: http://lists.mysql.com/commits/138224 Message-Id: <20110526144608.0BF35223@fimafeng09.norway.sun.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 4424 Jan Wedvik 2011-05-26 This commit concerns pushed queries (those using NdbQuery etc.). This is a fix for an error that would occur when pushing an index scan that is sorted on a string field. The problem was an assumption that compare_ndbrecord() would always return 0,-1 or 1, when it can in fact return any number. This could cause results to be sorted in the wrong order, or mysqld to loop for ever. modified: storage/ndb/src/ndbapi/NdbQueryOperation.cpp 4423 Jonas Oreland 2011-05-26 ndb - fix bug in DbtcProxy...worker instances are named 1..N modified: storage/ndb/src/kernel/blocks/dbtc/DbtcProxy.cpp === modified file 'storage/ndb/src/ndbapi/NdbQueryOperation.cpp' --- a/storage/ndb/src/ndbapi/NdbQueryOperation.cpp 2011-05-11 13:31:44 +0000 +++ b/storage/ndb/src/ndbapi/NdbQueryOperation.cpp 2011-05-26 14:44:59 +0000 @@ -3186,18 +3186,19 @@ NdbQueryImpl::OrderedFragSet::reorganize while(first