Below is the list of changes that have just been committed into a local
5.1 repository of root. When root 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
ChangeSet@stripped, 2006-08-31 18:29:23+08:00, gni@dev3-127.(none) +1 -0
BUG#21033 The error log of mysqld shows useless information, and hides the real error.
storage/ndb/src/ndbapi/Ndb.cpp@stripped, 2006-08-31 18:29:21+08:00, gni@dev3-127.(none) +5 -0
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.
# 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: gni
# Host: dev3-127.(none)
# Root: /mnt/mysql/home/ngb/mysql-5.1-bug21033
--- 1.77/storage/ndb/src/ndbapi/Ndb.cpp 2006-08-31 18:30:28 +08:00
+++ 1.78/storage/ndb/src/ndbapi/Ndb.cpp 2006-08-31 18:30:28 +08:00
@@ -1147,8 +1147,13 @@
theError.code = tOperation->theError.code;
DBUG_ASSERT(theError.code != 0);
+ NdbError savedError;
+ savedError = theError;
if (tConnection != NULL)
+ theError = savedError;
|• bk commit into 5.1 tree (gni:1.2279) BUG#21033||gni||31 Aug|