List:Commits« Previous MessageNext Message »
From:tomas Date:January 17 2007 10:06am
Subject:bk commit into 5.0 tree (tulin:1.2383) BUG#25668
View as plain text  
Below is the list of changes that have just been committed into a local
5.0 repository of mysqldev. When mysqldev 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@stripped, 2007-01-17 10:06:50+01:00, tulin@stripped +1 -0
  ha_ndbcluster.cc:
      Bug #25668    ndb: mysqld may core if cluster disconnected
      -- pTrans may be NULL, remove not needed usage of handler::ndb_err

  sql/ha_ndbcluster.cc@stripped, 2007-01-17 10:06:00+01:00, tulin@stripped +9 -16
      Bug #25668    ndb: mysqld may core if cluster disconnected
      -- pTrans may be NULL, remove not needed usage of handler::ndb_err

# 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:	tulin
# Host:	production.mysql.com
# Root:	/data0/mysqldev/users/tomas/mysql-5.0-release

--- 1.292/sql/ha_ndbcluster.cc	2007-01-17 10:06:56 +01:00
+++ 1.293/sql/ha_ndbcluster.cc	2007-01-17 10:06:56 +01:00
@@ -6109,23 +6109,7 @@
 
     DBUG_RETURN(0);
 retry:
-    if(report_error)
-    {
-      if (file)
-      {
-        reterr= file->ndb_err(pTrans);
-      }
-      else
-      {
-        const NdbError& tmp= error;
-        ERR_PRINT(tmp);
-        reterr= ndb_to_mysql_error(&tmp);
-      }
-    }
-    else
-      reterr= error.code;
 
-    if (pTrans)
     {
       ndb->closeTransaction(pTrans);
       pTrans= NULL;
@@ -6135,6 +6119,15 @@
       my_sleep(retry_sleep);
       continue;
     }
+    if(report_error)
+    {
+      const NdbError& tmp= error;
+      ERR_PRINT(tmp);
+      reterr= ndb_to_mysql_error(&tmp);
+    }
+    else
+      reterr= error.code;
+
     break;
   } while(1);
   DBUG_PRINT("exit", ("failed, reterr: %u, NdbError %u(%s)", reterr,
Thread
bk commit into 5.0 tree (tulin:1.2383) BUG#25668tomas17 Jan