From aedaaf665813eff0315dedc3e0e9630b58112be7 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sat, 24 Jan 2009 21:56:15 +0000 Subject: [PATCH] Blind fix to runqueue_remove assert. unable to reproduce the problem... --- servers/slapd/syncrepl.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/servers/slapd/syncrepl.c b/servers/slapd/syncrepl.c index 8492e5477b..750c288297 100644 --- a/servers/slapd/syncrepl.c +++ b/servers/slapd/syncrepl.c @@ -1406,7 +1406,10 @@ reload: if ( !si->si_ctype || !si->si_retrynum || si->si_retrynum[i] == RETRYNUM_TAIL ) { - ldap_pvt_runqueue_remove( &slapd_rq, rtask ); + if ( si->si_re ) { + ldap_pvt_runqueue_remove( &slapd_rq, rtask ); + si->si_re = NULL; + } fail = RETRYNUM_TAIL; } else if ( RETRYNUM_VALID( si->si_retrynum[i] ) ) { if ( si->si_retrynum[i] > 0 ) -- 2.39.5