diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2024-02-24 17:25:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-24 17:25:29 +0100 |
commit | d6df5b5a70b3b318b7952c79b6e447480ae77c68 (patch) | |
tree | 53af3260857e8b8a4b899cdb1c1afa5cbaf0d1a6 /lib | |
parent | f6dba9620f9a403d9134bac785202abd1af3fe58 (diff) | |
parent | ac7f3ee985ad2c2d229411dabe48e19162131b67 (diff) | |
download | nextcloud-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.php | 6 |
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 |