]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9930 Do not reschedule consumers that are shutting down
authorOndřej Kuzník <ondra@mistotebe.net>
Mon, 30 Jan 2023 10:26:23 +0000 (10:26 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Mon, 30 Jan 2023 19:02:43 +0000 (19:02 +0000)
servers/slapd/syncrepl.c

index b738d51cb7b0561a6552e780043ab7c806bbf2a8..7749c31519b3f422dd46f1bcd0b3113fb59322a5 100644 (file)
@@ -6099,7 +6099,7 @@ syncinfo_free( syncinfo_t *sie, int free_all )
                }
                if ( sie->si_cookieState ) {
                        /* Could be called from do_syncrepl (server unpaused) */
-                       refresh_finished( sie );
+                       if ( !free_all ) refresh_finished( sie );
 
                        sie->si_cookieState->cs_ref--;
                        if ( !sie->si_cookieState->cs_ref ) {