mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 18:21:40 -04:00
Merge pull request #12109 from nextcloud/backport/11862/stable13
[13] Double check for failed cache with a shared storage
This commit is contained in:
commit
4e911226c6
1 changed files with 3 additions and 1 deletions
|
|
@ -371,10 +371,12 @@ class SharedStorage extends \OC\Files\Storage\Wrapper\Jail implements ISharedSto
|
|||
if (!$storage) {
|
||||
$storage = $this;
|
||||
}
|
||||
$sourceRoot = $this->getSourceRootInfo();
|
||||
if ($this->storage instanceof FailedStorage) {
|
||||
return new FailedCache();
|
||||
}
|
||||
$this->cache = new \OCA\Files_Sharing\Cache($storage, $this->getSourceRootInfo(), $this->superShare);
|
||||
|
||||
$this->cache = new \OCA\Files_Sharing\Cache($storage, $sourceRoot, $this->superShare);
|
||||
return $this->cache;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue