summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2024-02-24 17:25:29 +0100
committerGitHub <noreply@github.com>2024-02-24 17:25:29 +0100
commitd6df5b5a70b3b318b7952c79b6e447480ae77c68 (patch)
tree53af3260857e8b8a4b899cdb1c1afa5cbaf0d1a6 /lib
parentf6dba9620f9a403d9134bac785202abd1af3fe58 (diff)
parentac7f3ee985ad2c2d229411dabe48e19162131b67 (diff)
downloadnextcloud-server-d6df5b5a70b3b318b7952c79b6e447480ae77c68.tar.gz
nextcloud-server-d6df5b5a70b3b318b7952c79b6e447480ae77c68.zip
Merge pull request #41910 from nextcloud/debug-force-full-fs-setup
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Files/SetupManager.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/private/Files/SetupManager.php b/lib/private/Files/SetupManager.php
index 511e80bd7d9..93b7dc37b6b 100644
--- a/lib/private/Files/SetupManager.php
+++ b/lib/private/Files/SetupManager.php
@@ -80,6 +80,7 @@ class SetupManager {
private bool $listeningForProviders;
private array $fullSetupRequired = [];
private bool $setupBuiltinWrappersDone = false;
+ private bool $forceFullSetup = false;
public function __construct(
private IEventLogger $eventLogger,
@@ -97,6 +98,7 @@ class SetupManager {
) {
$this->cache = $cacheFactory->createDistributed('setupmanager::');
$this->listeningForProviders = false;
+ $this->forceFullSetup = $this->config->getSystemValueBool('debug.force-full-fs-setup');
$this->setupListeners();
}
@@ -470,6 +472,10 @@ class SetupManager {
}
private function fullSetupRequired(IUser $user): bool {
+ if ($this->forceFullSetup) {
+ return true;
+ }
+
// we perform a "cached" setup only after having done the full setup recently
// this is also used to trigger a full setup after handling events that are likely
// to change the available mounts