MXS-1539: Also synchronize rate limitations
If a synchronous authenticator is used, the rate limitations are also synchronous.
This commit is contained in:
@ -1624,6 +1624,9 @@ int service_refresh_users(SERVICE *service)
|
|||||||
if ((service->capabilities & ACAP_TYPE_ASYNC) == 0)
|
if ((service->capabilities & ACAP_TYPE_ASYNC) == 0)
|
||||||
{
|
{
|
||||||
spinlock_acquire(&service->spin);
|
spinlock_acquire(&service->spin);
|
||||||
|
// Use only one rate limitation for synchronous authenticators to keep
|
||||||
|
// rate limitations synchronous as well
|
||||||
|
self = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Check if refresh rate limit has been exceeded */
|
/* Check if refresh rate limit has been exceeded */
|
||||||
|
Reference in New Issue
Block a user