mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
ITS#9339 Fix syncrepl_monitor_init for dynamic monitor backend
Calling from backend.c only works if back-monitor is a static backend
This commit is contained in:
parent
3e181b8453
commit
2b512ea79c
@ -116,8 +116,10 @@ int backend_init(void)
|
||||
|
||||
LDAP_STAILQ_INSERT_TAIL(&backendInfo, bi, bi_next);
|
||||
}
|
||||
#if defined(SLAPD_MONITOR) && SLAPD_MONITOR == SLAPD_MOD_STATIC
|
||||
/* HACK: need schema defined in deterministic order */
|
||||
syncrepl_monitor_init();
|
||||
#endif
|
||||
|
||||
|
||||
if ( nBackendInfo > 0) {
|
||||
|
@ -7069,6 +7069,7 @@ add_syncrepl(
|
||||
si->si_cookieState->cs_ref++;
|
||||
|
||||
si->si_next = NULL;
|
||||
syncrepl_monitor_init();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user