Commit fc6a215a authored by unknown's avatar unknown

BUG#21033 The error log of mysqld shows useless information, and hides the real error.


storage/ndb/src/ndbapi/Ndb.cpp:
  Ndb.closeTransaction() modifies the value of Ndb.theError.code, 
  but the error code shouldn't be changed here. 
  Mysqld will use the returning error code to log the correct information.
parent 8902b06c
......@@ -1147,9 +1147,14 @@ Ndb::opTupleIdOnNdb(const NdbTableImpl* table,
theError.code = tOperation->theError.code;
DBUG_ASSERT(theError.code != 0);
NdbError savedError;
savedError = theError;
if (tConnection != NULL)
this->closeTransaction(tConnection);
theError = savedError;
DBUG_RETURN(-1);
}
......
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