From 6f31d73dc0b28c49784ec0aed5ae47554c411421 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Kuzn=C3=ADk?= Date: Mon, 10 Jan 2022 16:10:57 +0000 Subject: [PATCH] ITS#9776 Fix check on what backend we're operating on --- servers/slapd/syncrepl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/servers/slapd/syncrepl.c b/servers/slapd/syncrepl.c index 41cd5e49c2..81be13aba9 100644 --- a/servers/slapd/syncrepl.c +++ b/servers/slapd/syncrepl.c @@ -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