From: Michael Vogel Date: Sat, 21 Nov 2020 13:17:14 +0000 (+0100) Subject: Immediately fail when lock hadn't been acquired to prevent stocked updates X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b40218eb0baab6526449a76b1c3fcafa68aea3d0;p=friendica.git Immediately fail when lock hadn't been acquired to prevent stocked updates --- 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]);