]> source.dussan.org Git - nextcloud-server.git/commitdiff
set the mount id before calling storage wrapper 22517/head
authorRobin Appelman <robin@icewind.nl>
Mon, 31 Aug 2020 14:38:47 +0000 (16:38 +0200)
committerRobin Appelman <robin@icewind.nl>
Mon, 31 Aug 2020 14:38:47 +0000 (16:38 +0200)
this allows the storage wrapper to use the mount id for it's own logic

Signed-off-by: Robin Appelman <robin@icewind.nl>
lib/private/Files/Mount/MountPoint.php

index f9cda6fbce8e1d1b8c22dd2fd3bec74b81f3374d..626bc32ebf27f3e78c899d91c4cd5d29e7d0ee30 100644 (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;
        }
 
        /**