diff options
author | jonas@perch.ndb.mysql.com <> | 2006-12-01 11:24:37 +0100 |
---|---|---|
committer | jonas@perch.ndb.mysql.com <> | 2006-12-01 11:24:37 +0100 |
commit | 7232d0f24a5c50fd56aa106c16bc0cab0cdac249 (patch) | |
tree | f5e1e937ba167f2dc8fbe247a5d7c908dc61e21d /ndb | |
parent | 61c6f532d29b90582d39d72e5cb0d5cf02d11550 (diff) | |
download | mariadb-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.cpp | 5 |
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; |