summaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Config/LazyStorageMountInfo.php
diff options
context:
space:
mode:
authorBjörn Schießle <bjoern@schiessle.org>2016-08-10 14:56:41 +0200
committerGitHub <noreply@github.com>2016-08-10 14:56:41 +0200
commit219f36d2616126684f34372e36f3c76355a78aa7 (patch)
tree4a70cbac1c92b4899a5d055161f541eb87d454a6 /lib/private/Files/Config/LazyStorageMountInfo.php
parente8571a2b196b6f255ae05e5c13d544593628defa (diff)
parenta999420c7561791a30ac05ac389876f45aa6c11b (diff)
downloadnextcloud-server-219f36d2616126684f34372e36f3c76355a78aa7.tar.gz
nextcloud-server-219f36d2616126684f34372e36f3c76355a78aa7.zip
Merge pull request #820 from nextcloud/shared-storage-lazy-numeric-id
get shared storage storage id without setting up the storage
Diffstat (limited to 'lib/private/Files/Config/LazyStorageMountInfo.php')
-rw-r--r--lib/private/Files/Config/LazyStorageMountInfo.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/private/Files/Config/LazyStorageMountInfo.php b/lib/private/Files/Config/LazyStorageMountInfo.php
index 2e9639f5f08..4df813d57d0 100644
--- a/lib/private/Files/Config/LazyStorageMountInfo.php
+++ b/lib/private/Files/Config/LazyStorageMountInfo.php
@@ -48,11 +48,7 @@ class LazyStorageMountInfo extends CachedMountInfo {
*/
public function getStorageId() {
if (!$this->storageId) {
- $storage = $this->mount->getStorage();
- if (!$storage) {
- return -1;
- }
- $this->storageId = $storage->getStorageCache()->getNumericId();
+ $this->storageId = $this->mount->getNumericStorageId();
}
return parent::getStorageId();
}