|
@@ 246-248 (lines=3) @@
|
| 243 |
|
return null; |
| 244 |
|
} finally { |
| 245 |
|
//release the acquired lock |
| 246 |
|
if ($lock && $this->storage->instanceOfStorage(ILockingStorage::class)) { |
| 247 |
|
$this->storage->releaseLock($file, ILockingProvider::LOCK_SHARED, $this->lockingProvider); |
| 248 |
|
} |
| 249 |
|
} |
| 250 |
|
} |
| 251 |
|
|
|
@@ 147-149 (lines=3) @@
|
| 144 |
|
if (!self::isPartialFile($file) and !Filesystem::isFileBlacklisted($file)) { |
| 145 |
|
|
| 146 |
|
//acquire a lock |
| 147 |
|
if ($lock && $this->storage->instanceOfStorage(ILockingStorage::class)) { |
| 148 |
|
$this->storage->acquireLock($file, ILockingProvider::LOCK_SHARED, $this->lockingProvider); |
| 149 |
|
} |
| 150 |
|
|
| 151 |
|
try { |
| 152 |
|
$data = $this->getData($file); |