From f20bd3c4ed656ea3df2a773d26d24fc9c8fb401a Mon Sep 17 00:00:00 2001 From: Thierry Bordaz Date: Tue, 25 Jul 2017 10:59:47 +0200 Subject: [PATCH] Ticket 49332 - Event queue is not working Bug Description: The event queue thread runs eq_loop. It contains a wait loop that sleeps for the duration to the next scheduled event. This loop was using a macro WORK_AVAILABLE that read the current time. https://pagure.io/389-ds-base/issue/49316 replace that macro but did not update the current time. As a consequence eq_loop was stuck in the sleep loop without calling the scheduled event. Fix Description: Make sure the loop update the current time https://pagure.io/389-ds-base/issue/49332 Reviewed by: ? Platforms tested: F23 Flag Day: no Doc impact: no --- ldap/servers/slapd/eventq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ldap/servers/slapd/eventq.c b/ldap/servers/slapd/eventq.c index 7ce6e44..8fccf38 100644 --- a/ldap/servers/slapd/eventq.c +++ b/ldap/servers/slapd/eventq.c @@ -316,6 +316,7 @@ eq_loop(void *arg __attribute__((unused))) timeout = PR_INTERVAL_NO_TIMEOUT; } PR_WaitCondVar(eq->eq_cv, timeout); + curtime = slapi_current_utc_time(); } /* There is some work to do */ PR_Unlock(eq->eq_lock); -- 2.5.0