Commit 6f31d73d authored by Ondřej Kuzník's avatar Ondřej Kuzník Committed by Quanah Gibson-Mount
Browse files

ITS#9776 Fix check on what backend we're operating on

parent 414866b8
Pipeline #3991 passed with stage
in 44 minutes and 11 seconds
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment