summaryrefslogtreecommitdiffstats
path: root/lib/private/files/cache/wrapper
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-12-10 12:55:01 +0100
committerVincent Petry <pvince81@owncloud.com>2014-12-10 13:05:31 +0100
commitebba54d4902113af3ad3f91159861f93546c8401 (patch)
treee27c3f4efc8dbae793344b6fb4e60f452d9cc229 /lib/private/files/cache/wrapper
parent5398bbdc003a93f8652b7c7a88bc80e7710996c9 (diff)
downloadnextcloud-server-ebba54d4902113af3ad3f91159861f93546c8401.tar.gz
nextcloud-server-ebba54d4902113af3ad3f91159861f93546c8401.zip
Fix numeric storage id for cache wrapper
Diffstat (limited to 'lib/private/files/cache/wrapper')
-rw-r--r--lib/private/files/cache/wrapper/cachewrapper.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/private/files/cache/wrapper/cachewrapper.php b/lib/private/files/cache/wrapper/cachewrapper.php
index 040358ec657..d3d64e3f0a9 100644
--- a/lib/private/files/cache/wrapper/cachewrapper.php
+++ b/lib/private/files/cache/wrapper/cachewrapper.php
@@ -234,6 +234,15 @@ class CacheWrapper extends Cache {
}
/**
+ * Returns the numeric storage id
+ *
+ * @return int
+ */
+ public function getNumericStorageId() {
+ return $this->cache->getNumericStorageId();
+ }
+
+ /**
* get the storage id of the storage for a file and the internal path of the file
* unlike getPathById this does not limit the search to files on this storage and
* instead does a global search in the cache table