From: Howard Chu Date: Sat, 24 Jan 2009 21:56:15 +0000 (+0000) Subject: Blind fix to runqueue_remove assert. unable to reproduce the problem... X-Git-Tag: ACLCHECK_0~965 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=aedaaf665813eff0315dedc3e0e9630b58112be7;p=openldap Blind fix to runqueue_remove assert. unable to reproduce the problem... --- 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 )