summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-10-13 13:14:07 +0200
committerRobin Appelman <icewind@owncloud.com>2014-10-27 18:50:28 +0100
commit3f63f4b6b13a358e13a0c5ebd2f85b918b8c410f (patch)
treeff5bc8055a347c287a648c6c7cf6954aa5b7f2a4
parent8de287f2efe2eafcbda8c54590e363486719257e (diff)
downloadnextcloud-server-3f63f4b6b13a358e13a0c5ebd2f85b918b8c410f.tar.gz
nextcloud-server-3f63f4b6b13a358e13a0c5ebd2f85b918b8c410f.zip
Only mount the storages for the user once
-rw-r--r--lib/private/files/filesystem.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/private/files/filesystem.php b/lib/private/files/filesystem.php
index cdbbbf3d3cd..51a241a4e33 100644
--- a/lib/private/files/filesystem.php
+++ b/lib/private/files/filesystem.php
@@ -45,6 +45,7 @@ class Filesystem {
*/
static private $defaultInstance;
+ static private $usersSetup = array();
/**
* classname which used for hooks handling
@@ -321,7 +322,10 @@ class Filesystem {
if ($user == '') {
$user = \OC_User::getUser();
}
- $parser = new \OC\ArrayParser();
+ if (isset(self::$usersSetup[$user])) {
+ return;
+ }
+ self::$usersSetup[$user] = true;
$root = \OC_User::getHome($user);