MXS-2179 Activate WD workaround when fetching users

Fetching the users may potentially take longer than the watchdog
timeout. To ensure that MaxScale is not killed by systemd, we must
ensure that the notifications are generated also when MaxScale
synchronously is fetching the users.
This commit is contained in:
Johan Wikman
2018-11-21 13:47:04 +02:00
parent f1a113aff0
commit 1591ff7f46

View File

@ -1422,6 +1422,7 @@ void dListListeners(DCB* dcb)
bool Service::refresh_users()
{
mxs::WatchdogWorkaround workaround;
bool ret = true;
int self = mxs_rworker_get_current_id();
mxb_assert(self >= 0);