Skip to content

Commit

Permalink
Merge pull request #86 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 21, 2023
2 parents fd4d694 + 37f5410 commit ca27fe2
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 ca27fe2

Please sign in to comment.