Skip to content

Commit

Permalink
Merge pull request #49 from it-at-m/bugfix-1710-increase-tabe-lock-ti…
Browse files Browse the repository at this point in the history
…meout

fix(ZMS-1710): increase timeout
  • Loading branch information
manjencic authored Dec 6, 2023
2 parents c3e1e3c + 37f5410 commit c738d4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zmsdb/src/Zmsdb/Helper/CalculateSlots.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ public function deleteOldSlots(\DateTimeInterface $now)
$this->log("Maintenance: Delete slots older than ". $now->format('Y-m-d'));
$slotQuery = new \BO\Zmsdb\Slot();
$pdo = \BO\Zmsdb\Connection\Select::getWriteConnection();
$pdo->exec('SET SESSION innodb_lock_wait_timeout=120');
$pdo->exec('SET SESSION innodb_lock_wait_timeout=600');
if ($slotQuery->deleteSlotsOlderThan($now)) {
\BO\Zmsdb\Connection\Select::writeCommit();
$this->log("Deleted old slots successfully");
Expand Down

0 comments on commit c738d4e

Please sign in to comment.