We are doing uncommitted reads a little bit different. (We avoid commit)

pull/2861/head
Michael 2016-10-28 09:08:13 +00:00
rodzic 3f0656fdbd
commit d78b4e7ffc
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -397,9 +397,9 @@ function qu($sql) {
$stmt = @vsprintf($sql,$args); // Disabled warnings
if ($stmt === false)
logger('dba: vsprintf error: ' . print_r(debug_backtrace(),true), LOGGER_DEBUG);
$db->q("SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;");
$db->q("SET SESSION TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;");
$retval = $db->q($stmt);
$db->q("COMMIT;");
$db->q("SET SESSION TRANSACTION ISOLATION LEVEL REPEATABLE READ;");
return $retval;
}