Commit 0eea42ce authored by Russell Boyatt's avatar Russell Boyatt Committed by Aaron Wells
Browse files

Set transaction mode to "READ COMMITTED" to avoid deadlocks. Bug 1492919

behatnotneeded: Testing requires multiple simultaneous users

Change-Id: Icfac83b0ac9ed6ab0c304658550dd0260bd5d7eb
parent 5f36b126
......@@ -1481,6 +1481,8 @@ function configure_dbconnection() {
$db->_Execute("SET SQL_BIG_SELECTS=1");
$db->SetTransactionMode('READ COMMITTED');
if (!empty($CFG->dbtimezone)) {
if (is_postgres()) {
$db->_Execute("SET SESSION TIME ZONE '{$CFG->dbtimezone}'");
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment