Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble-scripts.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Hacker <dd0t@users.sourceforge.net>2012-07-09 21:31:08 +0400
committerStefan Hacker <dd0t@users.sourceforge.net>2012-07-09 21:31:08 +0400
commit8bd9ab057b41025f654fd0f485f1682f283252c4 (patch)
tree4e3f927890fdf8299a52e5420ea97a79cc2ab61a /Authenticators
parent49eb20f5cb8e227df62e188b3dddb595f9bd097d (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-xAuthenticators/SMF/smfauth.py3
-rwxr-xr-xAuthenticators/phpBB3/phpBB3auth.py3
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()