Commit 21751bd1 authored by unknown's avatar unknown

Merge perch.ndb.mysql.com:/home/jonas/src/50-work

into  perch.ndb.mysql.com:/home/jonas/src/51-work


storage/ndb/src/ndbapi/NdbTransaction.cpp:
  Auto merged
sql/ha_ndbcluster.cc:
  merge
parents 6ea01baf c1b1587f
...@@ -1875,7 +1875,8 @@ int ha_ndbcluster::peek_indexed_rows(const byte *record) ...@@ -1875,7 +1875,8 @@ int ha_ndbcluster::peek_indexed_rows(const byte *record)
int res; int res;
DBUG_ENTER("peek_indexed_rows"); DBUG_ENTER("peek_indexed_rows");
NdbOperation::LockMode lm= NdbOperation::LM_Read; NdbOperation::LockMode lm=
(NdbOperation::LockMode)get_ndb_lock_type(m_lock.type);
first= NULL; first= NULL;
if (table->s->primary_key != MAX_KEY) if (table->s->primary_key != MAX_KEY)
{ {
......
...@@ -360,8 +360,15 @@ NdbTransaction::execute(ExecType aTypeOfExec, ...@@ -360,8 +360,15 @@ NdbTransaction::execute(ExecType aTypeOfExec,
ret = -1; ret = -1;
if(savedError.code==0) if(savedError.code==0)
savedError= theError; savedError= theError;
/**
* If AO_IgnoreError, error codes arent always set on individual
* operations, making postExecute impossible
*/
if (abortOption == AO_IgnoreError)
DBUG_RETURN(-1);
} }
#ifdef ndb_api_crash_on_complex_blob_abort #ifdef ndb_api_crash_on_complex_blob_abort
assert(theFirstOpInList == NULL && theLastOpInList == NULL); assert(theFirstOpInList == NULL && theLastOpInList == NULL);
#else #else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment