From bcf13aff6f9082f87930068ecd9560612e36fc6a Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 3 Jun 2015 16:51:21 +0200 Subject: [PATCH] change lock back to shared before updating the cache --- lib/private/files/view.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/private/files/view.php b/lib/private/files/view.php index 1b492213053..48fec01f171 100644 --- a/lib/private/files/view.php +++ b/lib/private/files/view.php @@ -556,9 +556,12 @@ class View { list (, $result) = \OC_Helper::streamCopy($data, $target); fclose($target); fclose($data); + + $this->changeLock($path, ILockingProvider::LOCK_SHARED); + $this->updater->update($path); - $this->unlockFile($path, ILockingProvider::LOCK_EXCLUSIVE); + $this->unlockFile($path, ILockingProvider::LOCK_SHARED); if ($this->shouldEmitHooks($path) && $result !== false) { $this->emit_file_hooks_post($exists, $path);