We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25c0832 commit f6a74f6Copy full SHA for f6a74f6
lib/internal/Magento/Framework/Lock/Backend/FileLock.php
@@ -106,7 +106,7 @@ public function lock(string $name, int $timeout = -1): bool
106
}
107
108
/**
109
- * Find lock files that haven't been touched in the last 24 hours and are unlocked, and delete those
+ * Find lock files that haven't been touched in the last 24 hours, are 0 bytes and are unlocked, then delete those
110
*/
111
public function cleanupOldLocks(): int
112
{
@@ -128,6 +128,11 @@ public function cleanupOldLocks(): int
128
continue;
129
130
131
+ $filesize = filesize($lockFile);
132
+ if ($filesize !== 0) {
133
+ continue;
134
+ }
135
+
136
if ($this->isLocked(basename($lockFile))) {
137
138
0 commit comments