Commit bd084edc authored by Russell Boyatt's avatar Russell Boyatt Committed by Aaron Wells

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

behatnotneeded: Testing requires multiple simultaneous users

Change-Id: Icfac83b0ac9ed6ab0c304658550dd0260bd5d7eb
(cherry picked from commit 0eea42ce)
(cherry picked from commit 35d7bfa5)
parent b09f156c
......@@ -1480,6 +1480,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}'");
Markdown is supported
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