summaryrefslogtreecommitdiff
path: root/ndb
diff options
context:
space:
mode:
authorjonas@perch.ndb.mysql.com <>2006-12-01 11:24:37 +0100
committerjonas@perch.ndb.mysql.com <>2006-12-01 11:24:37 +0100
commit7232d0f24a5c50fd56aa106c16bc0cab0cdac249 (patch)
treef5e1e937ba167f2dc8fbe247a5d7c908dc61e21d /ndb
parent61c6f532d29b90582d39d72e5cb0d5cf02d11550 (diff)
downloadmariadb-git-7232d0f24a5c50fd56aa106c16bc0cab0cdac249.tar.gz
ndb - bug#24748
Skip rollback if only committedRead in transaction
Diffstat (limited to 'ndb')
-rw-r--r--ndb/src/ndbapi/NdbTransaction.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/ndb/src/ndbapi/NdbTransaction.cpp b/ndb/src/ndbapi/NdbTransaction.cpp
index 6ce9cbab199..62bbcefd025 100644
--- a/ndb/src/ndbapi/NdbTransaction.cpp
+++ b/ndb/src/ndbapi/NdbTransaction.cpp
@@ -923,7 +923,10 @@ NdbTransaction::release(){
* The user did not perform any rollback but simply closed the
* transaction. We must rollback Ndb since Ndb have been contacted.
************************************************************************/
- execute(Rollback);
+ if (!theSimpleState)
+ {
+ execute(Rollback);
+ }
}//if
theMagicNumber = 0xFE11DC;
theInUseState = false;