You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$innodbSnapshotIsolation = $this->em->getConnection()->query('SHOW VARIABLES LIKE "innodb_snapshot_isolation"')->fetchAssociative();
54
+
if ($innodbSnapshotIsolation && $innodbSnapshotIsolation['Value'] === 'ON') {
55
+
$this->addFlash('danger', 'InnoDB snapshot isolation is enabled. Set --innodb_snapshot_isolation=OFF in your MariaDB configuration. See https://github.com/DOMjudge/domjudge/issues/2848 for more information.');
@@ -251,6 +255,13 @@ public function checkMysqlSettings(): ConfigCheckItem
251
255
$desc .= sprintf("max_allowed_packet is set to %s.\n", Utils::printsize((int)$vars['max_allowed_packet']));
252
256
}
253
257
258
+
if ($vars['innodb_snapshot_isolation'] === 'ON') {
259
+
$result = 'E';
260
+
$desc .= 'InnoDB snapshot isolation is enabled. Set --innodb_snapshot_isolation=OFF in your MariaDB configuration. See https://github.com/DOMjudge/domjudge/issues/2848 for more information.';
261
+
} else {
262
+
$desc .= "InnoDB snapshot isolation is disabled.\n";
0 commit comments