summaryrefslogtreecommitdiffstats
path: root/lib/private/files/view.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-06-18 14:49:31 +0200
committerRobin Appelman <icewind@owncloud.com>2015-06-18 15:26:17 +0200
commit6018567df2bc0c5f7cd50b8e27d054d0184a56a5 (patch)
tree1abb7bf41ee415b6b2d2b8cd55b8535e46dd5cd6 /lib/private/files/view.php
parent72eedda16cec0b15850371035c517e98b0e9e064 (diff)
downloadnextcloud-server-6018567df2bc0c5f7cd50b8e27d054d0184a56a5.tar.gz
nextcloud-server-6018567df2bc0c5f7cd50b8e27d054d0184a56a5.zip
unlock the file if the file doesnt exists
Diffstat (limited to 'lib/private/files/view.php')
-rw-r--r--lib/private/files/view.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/files/view.php b/lib/private/files/view.php
index 711acc0bf53..46158b42f10 100644
--- a/lib/private/files/view.php
+++ b/lib/private/files/view.php
@@ -1166,6 +1166,7 @@ class View {
// if the file is not in the cache or needs to be updated, trigger the scanner and reload the data
if (!$data) {
if (!$storage->file_exists($internalPath)) {
+ $this->unlockFile($relativePath, ILockingProvider::LOCK_SHARED);
return false;
}
$scanner = $storage->getScanner($internalPath);
@@ -1251,6 +1252,7 @@ class View {
$watcher = $storage->getWatcher($internalPath);
if (!$data or $data['size'] === -1) {
if (!$storage->file_exists($internalPath)) {
+ $this->unlockFile($directory, ILockingProvider::LOCK_SHARED);
return array();
}
$scanner = $storage->getScanner($internalPath);