From b40218eb0baab6526449a76b1c3fcafa68aea3d0 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sat, 21 Nov 2020 14:17:14 +0100 Subject: [PATCH] Immediately fail when lock hadn't been acquired to prevent stocked updates --- src/Core/Update.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/Update.php b/src/Core/Update.php index 4d65f549a0..a640d5ec2f 100644 --- a/src/Core/Update.php +++ b/src/Core/Update.php @@ -113,7 +113,7 @@ class Update // Compare the current structure with the defined structure // If the Lock is acquired, never release it automatically to avoid double updates - if (DI::lock()->acquire('dbupdate', 120, Cache\Duration::INFINITE)) { + if (DI::lock()->acquire('dbupdate', 0, Cache\Duration::INFINITE)) { Logger::notice('Update starting.', ['from' => $stored, 'to' => $current]);