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:
Howard Chu 2020-09-17 15:22:01 +01:00
parent 3e181b8453
commit 2b512ea79c
2 changed files with 3 additions and 0 deletions

View File

@ -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) {

View File

@ -7069,6 +7069,7 @@ add_syncrepl(
si->si_cookieState->cs_ref++;
si->si_next = NULL;
syncrepl_monitor_init();
return 0;
}