diff options
author | Robin Appelman <robin@icewind.nl> | 2023-11-29 16:34:19 +0100 |
---|---|---|
committer | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2024-02-24 11:55:20 +0100 |
commit | ac7f3ee985ad2c2d229411dabe48e19162131b67 (patch) | |
tree | 297bbde16bde053a2eeacc055514782232779909 /lib/private/Files | |
parent | 3343626183a90412dfd4104f47e94b76e72710f0 (diff) | |
download | nextcloud-server-ac7f3ee985ad2c2d229411dabe48e19162131b67.tar.gz nextcloud-server-ac7f3ee985ad2c2d229411dabe48e19162131b67.zip |
add a debug option to force a full filesystem setup
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Files')
-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 |