[Pkg-owncloud-commits] [owncloud] 295/457: change lock back to shared before updating the cache
David Prévot
taffit at moszumanska.debian.org
Sun Jun 28 20:06:26 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch stable8
in repository owncloud.
commit bcf13aff6f9082f87930068ecd9560612e36fc6a
Author: Robin Appelman <icewind at owncloud.com>
Date: Wed Jun 3 16:51:21 2015 +0200
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 1b49221..48fec01 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);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list