From: Date: May 5 2006 2:26pm Subject: bk commit into 5.1 tree (mskold:1.2381) BUG#18798 List-Archive: http://lists.mysql.com/commits/6010 X-Bug: 18798 Message-Id: <20060505122612.4350268E9A@linux.site> Below is the list of changes that have just been committed into a local 5.1 repository of marty. When marty 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.2381 06/05/05 14:25:57 mskold@stripped +1 -0 Bug #18798: mysqld cores on update in ha_ndbcluster call if cluster has failed before, added extra check that transaction is started sql/ha_ndbcluster.cc 1.300 06/05/05 14:25:29 mskold@stripped +2 -1 Bug #18798: mysqld cores on update in ha_ndbcluster call if cluster has failed before, added extra check that transaction is started # 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: mskold # Host: linux.site # Root: /home/marty/MySQL/mysql-5.1-new --- 1.299/sql/ha_ndbcluster.cc 2006-05-04 21:55:02 +02:00 +++ 1.300/sql/ha_ndbcluster.cc 2006-05-05 14:25:29 +02:00 @@ -6447,7 +6447,8 @@ } // Define scan op for the range - if ((trans=m_active_trans) == NULL) + if ((trans=m_active_trans) == NULL || + trans->commitStatus() != NdbTransaction::Started) { DBUG_PRINT("info", ("no active trans")); if (! (trans=ndb->startTransaction()))