]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9776 Fix check on what backend we're operating on
authorOndřej Kuzník <ondra@mistotebe.net>
Mon, 10 Jan 2022 16:10:57 +0000 (16:10 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Wed, 12 Jan 2022 22:48:59 +0000 (22:48 +0000)
servers/slapd/syncrepl.c

index 81c61e0672d611e1c3cdc28dee15202f234ec578..bccef383e8768ece096fb450b7dd8636a2e76278 100644 (file)
@@ -7468,7 +7468,8 @@ syncrepl_config( ConfigArgs *c )
                                         * happen when running on the cn=config DB.
                                         */
                                        if ( si->si_re ) {
-                                               if ( si->si_be == c->be || ldap_pvt_thread_mutex_trylock( &si->si_mutex )) {
+                                               if ( si->si_be == c->ca_op->o_bd ||
+                                                               ldap_pvt_thread_mutex_trylock( &si->si_mutex )) {
                                                        isrunning = 1;
                                                } else {
                                                        /* There is no active thread, but we must still