Commit 2572307a authored by Russell Boyatt's avatar Russell Boyatt Committed by Robert Lyon

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)
parent e51f93e8
......@@ -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}'");
......
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