[Pkg-owncloud-commits] [owncloud] 17/34: Only rescan trash folder when checking deleted versions
David Prévot
taffit at moszumanska.debian.org
Fri Nov 7 11:44:11 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit 8339aeab9a84afe2d020593b798251a2a583f70e
Author: Vincent Petry <pvince81 at owncloud.com>
Date: Tue Nov 4 12:29:42 2014 +0100
Only rescan trash folder when checking deleted versions
This fix prevents the file scanner to rescan the WHOLE storage and reset
the etags by mistake.
Backport of 97a51c46eddf4c1e8c691eea96dd762425ce17ca from master
---
apps/files_trashbin/lib/trashbin.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/apps/files_trashbin/lib/trashbin.php b/apps/files_trashbin/lib/trashbin.php
index e97bf25..8aea6d1 100644
--- a/apps/files_trashbin/lib/trashbin.php
+++ b/apps/files_trashbin/lib/trashbin.php
@@ -886,7 +886,7 @@ class Trashbin {
//force rescan of versions, local storage may not have updated the cache
/** @var \OC\Files\Storage\Storage $storage */
list($storage, ) = $view->resolvePath('/');
- $storage->getScanner()->scan('');
+ $storage->getScanner()->scan('files_trashbin');
if ($timestamp) {
// fetch for old versions
--
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