diff options
-rw-r--r-- | sql/xa.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/xa.cc b/sql/xa.cc index b08ab973cc5..de7fdf51011 100644 --- a/sql/xa.cc +++ b/sql/xa.cc @@ -671,6 +671,8 @@ bool trans_xa_detach(THD *thd) thd->transaction.all.ha_list= 0; thd->transaction.all.no_2pc= 0; + thd->server_status&= ~(SERVER_STATUS_IN_TRANS | + SERVER_STATUS_IN_TRANS_READONLY); return false; #endif } |