Skip to content

Commit

Permalink
[mysql] properly toggle mysql transactions automode
Browse files Browse the repository at this point in the history
  • Loading branch information
mkortstiege committed Mar 2, 2015
1 parent 5a7ab40 commit c9ff285
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xbmc/dbwrappers/mysqldataset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,7 @@ void MysqlDatabase::commit_transaction() {
if (active)
{
mysql_commit(conn);
mysql_autocommit(conn, true);
CLog::Log(LOGDEBUG,"Mysql commit transaction");
_in_transaction = false;
}
Expand All @@ -468,6 +469,7 @@ void MysqlDatabase::rollback_transaction() {
if (active)
{
mysql_rollback(conn);
mysql_autocommit(conn, true);
CLog::Log(LOGDEBUG,"Mysql rollback transaction");
_in_transaction = false;
}
Expand Down

0 comments on commit c9ff285

Please sign in to comment.