#1072 DDC-3191 - minor performance optimization
This commit is contained in:
parent
aca719be41
commit
e2acd74cb4
@ -204,7 +204,8 @@ class FileLockRegion implements ConcurrentRegion
|
||||
// The check below is necessary because on some platforms glob returns false
|
||||
// when nothing matched (even though no errors occurred)
|
||||
$filenames = glob(sprintf("%s/*.%s" , $this->directory, self::LOCK_EXTENSION));
|
||||
if (is_array($filenames)) {
|
||||
|
||||
if ($filenames) {
|
||||
foreach ($filenames as $filename) {
|
||||
@unlink($filename);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user