]> git.sur5r.net Git - openldap/commitdiff
Blind fix to runqueue_remove assert. unable to reproduce the problem...
authorHoward Chu <hyc@openldap.org>
Sat, 24 Jan 2009 21:56:15 +0000 (21:56 +0000)
committerHoward Chu <hyc@openldap.org>
Sat, 24 Jan 2009 21:56:15 +0000 (21:56 +0000)
servers/slapd/syncrepl.c

index 8492e5477b5193a1e0af452f4e4ba5b75e28727d..750c288297d822c971df0be46cf27700f7497168 100644 (file)
@@ -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 )