Merge pull request #41910 from nextcloud/debug-force-full-fs-setup

This commit is contained in:
John Molakvoæ 2024-02-24 17:25:29 +01:00 committed by GitHub
commit d6df5b5a70
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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