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

parent ebb04b1b
...@@ -1147,9 +1147,14 @@ Ndb::opTupleIdOnNdb(const NdbTableImpl* table, ...@@ -1147,9 +1147,14 @@ Ndb::opTupleIdOnNdb(const NdbTableImpl* table,
theError.code = tOperation->theError.code; theError.code = tOperation->theError.code;
DBUG_ASSERT(theError.code != 0); DBUG_ASSERT(theError.code != 0);
NdbError savedError;
savedError = theError;
if (tConnection != NULL) if (tConnection != NULL)
this->closeTransaction(tConnection); this->closeTransaction(tConnection);
theError = savedError;
DBUG_RETURN(-1); 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