diff options
author | Stefan Hacker <dd0t@users.sourceforge.net> | 2012-07-09 21:31:08 +0400 |
---|---|---|
committer | Stefan Hacker <dd0t@users.sourceforge.net> | 2012-07-09 21:31:08 +0400 |
commit | 8bd9ab057b41025f654fd0f485f1682f283252c4 (patch) | |
tree | 4e3f927890fdf8299a52e5420ea97a79cc2ab61a /Authenticators | |
parent | 49eb20f5cb8e227df62e188b3dddb595f9bd097d (diff) |
Enable autocommit in smf/phpBB3auth as InnoDB combined with MysqlDB's default settings cause REPEATABLE READ transactions to start even when only SELECTing data.
Diffstat (limited to 'Authenticators')
-rwxr-xr-x | Authenticators/SMF/smfauth.py | 3 | ||||
-rwxr-xr-x | Authenticators/phpBB3/phpBB3auth.py | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/Authenticators/SMF/smfauth.py b/Authenticators/SMF/smfauth.py index a060e1a..8b8351f 100755 --- a/Authenticators/SMF/smfauth.py +++ b/Authenticators/SMF/smfauth.py @@ -186,6 +186,9 @@ class threadDB(object): passwd = cfg.database.password, db = cfg.database.name, charset = 'utf8') + + con.autocommit(True) + except db.Error, e: error('Could not connect to database: %s', str(e)) raise threadDbException() diff --git a/Authenticators/phpBB3/phpBB3auth.py b/Authenticators/phpBB3/phpBB3auth.py index 92df4e1..d938169 100755 --- a/Authenticators/phpBB3/phpBB3auth.py +++ b/Authenticators/phpBB3/phpBB3auth.py @@ -160,6 +160,9 @@ class threadDB(object): passwd = cfg.database.password, db = cfg.database.name, charset = 'utf8') + + con.autocommit(True) + except db.Error, e: error('Could not connect to database: %s', str(e)) raise threadDbException() |