]> source.dussan.org Git - nextcloud-server.git/commitdiff
Only rescan trash folder when checking deleted versions
authorVincent Petry <pvince81@owncloud.com>
Tue, 4 Nov 2014 11:29:42 +0000 (12:29 +0100)
committerVincent Petry <pvince81@owncloud.com>
Tue, 4 Nov 2014 11:29:42 +0000 (12:29 +0100)
This fix prevents the file scanner to rescan the WHOLE storage and reset
the etags by mistake.

apps/files_trashbin/lib/trashbin.php

index 3d90791108e9a266c4d47ecfac02b21f9e54e258..52d24143902bec55044c505c7ca11bd72e7e6338 100644 (file)
@@ -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