summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/lib/trashbin.php
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-11-04 12:29:42 +0100
committerVincent Petry <pvince81@owncloud.com>2014-11-04 12:29:42 +0100
commit97a51c46eddf4c1e8c691eea96dd762425ce17ca (patch)
treef560463df2f248b7a59d7afadaf2e55482680740 /apps/files_trashbin/lib/trashbin.php
parent6f0c8141642bf3d2a1ca4f038ff5f97359b0ab15 (diff)
downloadnextcloud-server-97a51c46eddf4c1e8c691eea96dd762425ce17ca.tar.gz
nextcloud-server-97a51c46eddf4c1e8c691eea96dd762425ce17ca.zip
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.
Diffstat (limited to 'apps/files_trashbin/lib/trashbin.php')
-rw-r--r--apps/files_trashbin/lib/trashbin.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_trashbin/lib/trashbin.php b/apps/files_trashbin/lib/trashbin.php
index 3d90791108e..52d24143902 100644
--- a/apps/files_trashbin/lib/trashbin.php
+++ b/apps/files_trashbin/lib/trashbin.php
@@ -933,7 +933,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