Commit bc92adaf authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review

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

parents 71bf843a 0eea42ce
......@@ -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