~ubuntu-branches/ubuntu/hardy/mysql-dfsg-5.0/hardy-updates

« back to all changes in this revision

Viewing changes to ndb/src/ndbapi/NdbTransaction.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2007-04-02 16:10:53 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20070402161053-zkil9hjq9k5p1uzv
Tags: 5.0.37-0ubuntu1
* New upstream bugfix release.
  - Fixes replication failure with auto-increment and on duplicate key
    update, a regression introduced into 5.0.24. (LP: #95821)
* debian/control: Set Ubuntu maintainer.
* debian/rules: Change comments from 'Debian etch' to 'Ubuntu 7.04'.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
   This program is free software; you can redistribute it and/or modify
4
4
   it under the terms of the GNU General Public License as published by
5
 
   the Free Software Foundation; either version 2 of the License, or
6
 
   (at your option) any later version.
 
5
   the Free Software Foundation; version 2 of the License.
7
6
 
8
7
   This program is distributed in the hope that it will be useful,
9
8
   but WITHOUT ANY WARRANTY; without even the implied warranty of
474
473
         * This timeout situation can occur if NDB crashes.
475
474
         */
476
475
        ndbout << "This timeout should never occur, execute(..)" << endl;
 
476
        theError.code = 4012;
477
477
        setOperationErrorCodeAbort(4012);  // Error code for "Cluster Failure"
478
478
        DBUG_RETURN(-1);
479
479
      }//if
1966
1966
      theGlobalCheckpointId = tGCI;
1967
1967
    } else if ((tNoComp >= tNoSent) &&
1968
1968
               (theLastExecOpInList->theCommitIndicator == 1)){
 
1969
 
 
1970
      if (m_abortOption == AO_IgnoreError && theError.code != 0){
 
1971
        /**
 
1972
         * There's always a TCKEYCONF when using IgnoreError
 
1973
         */
 
1974
        return -1;
 
1975
      }
 
1976
 
1969
1977
      /**********************************************************************/
1970
1978
      // We sent the transaction with Commit flag set and received a CONF with
1971
1979
      // no Commit flag set. This is clearly an anomaly.