summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorGeorgi Kodinov <joro@sun.com>2009-12-01 11:19:51 +0200
committerGeorgi Kodinov <joro@sun.com>2009-12-01 11:19:51 +0200
commit248a74eaa10738a0e71e1fe1b11d7c236fe0f521 (patch)
tree817f6123e288df9996347a25c8cc2a29b32d9839 /sql
parent43f7cd01723a06c47de6f64475991e3f02c00f65 (diff)
downloadmariadb-git-248a74eaa10738a0e71e1fe1b11d7c236fe0f521.tar.gz
Revert of the push of bug #20837 due to failing regression tests.
Diffstat (limited to 'sql')
-rw-r--r--sql/handler.cc10
1 files changed, 2 insertions, 8 deletions
diff --git a/sql/handler.cc b/sql/handler.cc
index f6cdaca05bd..216228ed509 100644
--- a/sql/handler.cc
+++ b/sql/handler.cc
@@ -1369,14 +1369,8 @@ int ha_autocommit_or_rollback(THD *thd, int error)
if (thd->transaction_rollback_request && !thd->in_sub_stmt)
(void) ha_rollback(thd);
}
- }
- else if (!(thd->options & (OPTION_NOT_AUTOCOMMIT | OPTION_BEGIN)))
- {
- /*
- If we're in autocommit mode, reset tx_isolation
- to the default value
- */
- thd->variables.tx_isolation= thd->session_tx_isolation;
+
+ thd->variables.tx_isolation=thd->session_tx_isolation;
}
#endif
DBUG_RETURN(error);