diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2014-06-27 12:14:31 +0200 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2014-06-27 12:14:31 +0200 |
commit | ab93f1949dab8e71299b27552e527beb04f89de4 (patch) | |
tree | be3317a079dda0ddf3803f9b162c594068272697 /lib/private/files | |
parent | f96a535f80594697061e6405b6243946acc68df1 (diff) | |
download | nextcloud-server-ab93f1949dab8e71299b27552e527beb04f89de4.tar.gz nextcloud-server-ab93f1949dab8e71299b27552e527beb04f89de4.zip |
update hasUpdated description, overwrtie testStat for objectstore test
Diffstat (limited to 'lib/private/files')
-rw-r--r-- | lib/private/files/objectstore/objectstorestorage.php | 4 | ||||
-rw-r--r-- | lib/private/files/storage/common.php | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/lib/private/files/objectstore/objectstorestorage.php b/lib/private/files/objectstore/objectstorestorage.php index 4bc258a5807..09114d26de9 100644 --- a/lib/private/files/objectstore/objectstorestorage.php +++ b/lib/private/files/objectstore/objectstorestorage.php @@ -407,11 +407,11 @@ class ObjectStoreStorage extends \OC\Files\Storage\Common { } /** - * external changes are not supported + * external changes are not supported, exclusive access to the object storage is assumed * * @param string $path * @param int $time - * @return bool + * @return false */ public function hasUpdated($path, $time) { return false; diff --git a/lib/private/files/storage/common.php b/lib/private/files/storage/common.php index ecc75298b66..9657b511f15 100644 --- a/lib/private/files/storage/common.php +++ b/lib/private/files/storage/common.php @@ -279,6 +279,11 @@ abstract class Common implements \OC\Files\Storage\Storage { /** * check if a file or folder has been updated since $time * + * The method is only used to check if the cache needs to be updated. Storage backends that don't support checking + * the mtime should always return false here. As a result storage implementations that always return false expect + * exclusive access to the backend and will not pick up files that have been added in a way that circumvents + * ownClouds filesystem. + * * @param string $path * @param int $time * @return bool |