]> 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>
Tue, 11 Jan 2022 08:45:44 +0000 (08:45 +0000)
servers/slapd/syncrepl.c

index 41cd5e49c23d3f96bce09d1239ebe7bcfa852c41..81be13aba9cbb8f3e2d3fa6afdf6b1c3ddf16166 100644 (file)
@@ -7558,7 +7558,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