Only pre-seed asynchronous authenticators
Only asynchronous authenticators require the thread-specific loading of users as the synchronous ones all share the same data. If the service does not declare asynchronous capabilities at startup, the users are not seeded. This prevents unnecessary loading of users at startup.
This commit is contained in:
@ -2836,9 +2836,12 @@ bool service_thread_init()
|
||||
spinlock_acquire(&service_spin);
|
||||
|
||||
for (SERVICE* service = allServices; service; service = service->next)
|
||||
{
|
||||
if (service->capabilities & ACAP_TYPE_ASYNC)
|
||||
{
|
||||
service_refresh_users(service);
|
||||
}
|
||||
}
|
||||
|
||||
spinlock_release(&service_spin);
|
||||
|
||||
|
Reference in New Issue
Block a user