mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 18:21:40 -04:00
Revert "dont die if we try to access the shared cache while setting up the shared storage"
Revent accidental push
This reverts commit ed89034047.
This commit is contained in:
parent
64864bf654
commit
e76081e858
1 changed files with 1 additions and 8 deletions
|
|
@ -27,7 +27,6 @@
|
|||
|
||||
namespace OCA\Files_Sharing;
|
||||
|
||||
use OC\Files\Cache\FailedCache;
|
||||
use OC\Files\Cache\Wrapper\CacheJail;
|
||||
use OCP\Files\Cache\ICacheEntry;
|
||||
|
||||
|
|
@ -69,13 +68,7 @@ class Cache extends CacheJail {
|
|||
|
||||
public function getCache() {
|
||||
if (is_null($this->cache)) {
|
||||
$sourceStorage = $this->storage->getSourceStorage();
|
||||
if ($sourceStorage) {
|
||||
$this->cache = $sourceStorage->getCache();
|
||||
} else {
|
||||
// don't set $this->cache here since sourceStorage will be set later
|
||||
return new FailedCache();
|
||||
}
|
||||
$this->cache = $this->storage->getSourceStorage()->getCache();
|
||||
}
|
||||
return $this->cache;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue