Commit 2b512ea7 authored by Howard Chu's avatar Howard Chu
Browse files

ITS#9339 Fix syncrepl_monitor_init for dynamic monitor backend

Calling from backend.c only works if back-monitor is a static backend
parent 3e181b84
......@@ -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;
}
......
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