Skip to content

Commit

Permalink
Merge pull request xbmc#6586 from mkortstiege/toggle_transacations
Browse files Browse the repository at this point in the history
[mysql] properly toggle mysql transactions automode
  • Loading branch information
mkortstiege committed Mar 2, 2015
2 parents d6485ad + c9ff285 commit 68c3b24
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 68c3b24

Please sign in to comment.