]> git.mxchange.org Git - friendica.git/commitdiff
Immediately fail when lock hadn't been acquired to prevent stocked updates
authorMichael Vogel <icarus@dabo.de>
Sat, 21 Nov 2020 13:17:14 +0000 (14:17 +0100)
committerMichael Vogel <icarus@dabo.de>
Sat, 21 Nov 2020 13:17:14 +0000 (14:17 +0100)
src/Core/Update.php

index 4d65f549a0115661e66ffaa8de8c425370f2fe55..a640d5ec2fa664a45fc610ac8dba110b17763f67 100644 (file)
@@ -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]);