summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2016-12-13 12:50:17 +0100
committerRobin Appelman <robin@icewind.nl>2016-12-13 12:50:17 +0100
commit86473306f350cc426ce01009f6f6e2b4a57df38b (patch)
tree0cb256744957eb1535757b927361e34b691f3955 /lib
parentbbe24d29cac0fcee2573e9eea5ec17b565fd0817 (diff)
downloadnextcloud-server-86473306f350cc426ce01009f6f6e2b4a57df38b.tar.gz
nextcloud-server-86473306f350cc426ce01009f6f6e2b4a57df38b.zip
fix cacheentry return wrong storage id
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Files/Cache/Cache.php1
-rw-r--r--lib/private/Files/Cache/CacheEntry.php2
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/Files/Cache/Cache.php b/lib/private/Files/Cache/Cache.php
index 3a3f51488e6..859d79f88d4 100644
--- a/lib/private/Files/Cache/Cache.php
+++ b/lib/private/Files/Cache/Cache.php
@@ -163,6 +163,7 @@ class Cache implements ICache {
$data['storage_mtime'] = (int)$data['storage_mtime'];
$data['encryptedVersion'] = (int)$data['encrypted'];
$data['encrypted'] = (bool)$data['encrypted'];
+ $data['storage_id'] = $data['storage'];
$data['storage'] = $storageId;
$data['mimetype'] = $mimetypeLoader->getMimetypeById($data['mimetype']);
$data['mimepart'] = $mimetypeLoader->getMimetypeById($data['mimepart']);
diff --git a/lib/private/Files/Cache/CacheEntry.php b/lib/private/Files/Cache/CacheEntry.php
index 4a2579a88f8..784bd3a6f98 100644
--- a/lib/private/Files/Cache/CacheEntry.php
+++ b/lib/private/Files/Cache/CacheEntry.php
@@ -62,7 +62,7 @@ class CacheEntry implements ICacheEntry, \ArrayAccess {
}
public function getStorageId() {
- return $this->data['storage'];
+ return $this->data['storage_id'];
}