Merge pull request #22517 from nextcloud/external-mount-id-before-wrapper

set the mount id before calling storage wrapper
This commit is contained in:
Robin Appelman 2020-08-31 15:19:51 +00:00 committed by GitHub
commit 6b9b88f8b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -102,6 +102,7 @@ class MountPoint implements IMountPoint {
$mountpoint = $this->formatPath($mountpoint);
$this->mountPoint = $mountpoint;
$this->mountId = $mountId;
if ($storage instanceof Storage) {
$this->class = get_class($storage);
$this->storage = $this->loader->wrap($this, $storage);
@ -113,7 +114,6 @@ class MountPoint implements IMountPoint {
$this->class = $storage;
$this->arguments = $arguments;
}
$this->mountId = $mountId;
}
/**