List:Commits« Previous MessageNext Message »
From:jonas Date:February 15 2007 5:39pm
Subject:bk commit into 5.1 tree (jonas:1.2425)
View as plain text  
Below is the list of changes that have just been committed into a local
5.1 repository of jonas. When jonas 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-02-15 18:39:17+01:00, jonas@eel.(none) +1 -0
  ndb -
    fix ao_ignore behavior change in hugo
    (affecting testOperations & testTransactions)

  storage/ndb/test/src/HugoOperations.cpp@stripped, 2007-02-15 18:39:11+01:00, jonas@eel.(none) +10 -7
    fix ao_ignore behavior change in hugo

# 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:	jonas
# Host:	eel.(none)
# Root:	/home/jonas/src/51-work

--- 1.30/storage/ndb/test/src/HugoOperations.cpp	2007-02-15 18:39:27 +01:00
+++ 1.31/storage/ndb/test/src/HugoOperations.cpp	2007-02-15 18:39:27 +01:00
@@ -330,8 +330,8 @@
   int check = 0;
   check = pTrans->execute(Commit, eao);   
 
-  if( check == -1 ) {
-    const NdbError err = pTrans->getNdbError();
+  const NdbError err = pTrans->getNdbError();
+  if( check == -1 || err.code) {
     ERR(err);
     NdbOperation* pOp = pTrans->getNdbErrorOperation();
     if (pOp != NULL){
@@ -379,13 +379,16 @@
   int check;
   check = pTrans->execute(NoCommit, eao);   
 
-  if( check == -1 ) {
-    const NdbError err = pTrans->getNdbError();
+  const NdbError err = pTrans->getNdbError();
+  if( check == -1 || err.code) {
     ERR(err);
-    NdbOperation* pOp;
-    while ((pOp = pTrans->getNdbErrorOperation()) != NULL){
+    const NdbOperation* pOp = pTrans->getNdbErrorOperation();
+    while (pOp != NULL)
+    {
       const NdbError err2 = pOp->getNdbError();
-      ERR(err2);
+      if (err2.code)
+	ERR(err2);
+      pOp = pTrans->getNextCompletedOperation(pOp);
     }
     if (err.code == 0)
       return NDBT_FAILED;
Thread
bk commit into 5.1 tree (jonas:1.2425)jonas15 Feb