Skip to content

Commit 83b7913

Browse files
committed
Add a warning if --innodb_snapshot_isolation=true is set.
See #2848.
1 parent 564ceb7 commit 83b7913

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

webapp/src/Controller/Jury/JuryMiscController.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ public function __construct(
4949
#[Route(path: '', name: 'jury_index')]
5050
public function indexAction(ConfigurationService $config): Response
5151
{
52+
$innodbSnapshotIsolation = $this->em->getConnection()->query('SHOW VARIABLES LIKE "innodb_snapshot_isolation"')->fetchOne();
53+
if ($innodbSnapshotIsolation) {
54+
$this->addFlash('danger', 'InnoDB snapshot isolation is enabled. Set --innodb_snapshot_isolation=false in your MariaDB configuration. See https://github.com/DOMjudge/domjudge/issues/2848 for more information.');
55+
}
56+
5257
return $this->render('jury/index.html.twig', [
5358
'adminer_enabled' => $config->get('adminer_enabled'),
5459
'CCS_SPEC_API_URL' => GI::CCS_SPEC_API_URL,

0 commit comments

Comments
 (0)