From: Jong Hyuk Choi Date: Tue, 9 Mar 2004 20:43:19 +0000 (+0000) Subject: backend operations check X-Git-Tag: OPENLDAP_REL_ENG_2_2_BP~326 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2b77fb424c29c08206fbd7f27917956187e09ad7;p=openldap backend operations check --- diff --git a/servers/slapd/backend.c b/servers/slapd/backend.c index cb27cdb7aa..5c7ac050b4 100644 --- a/servers/slapd/backend.c +++ b/servers/slapd/backend.c @@ -409,6 +409,21 @@ int backend_startup(Backend *be) if ( !LDAP_STAILQ_EMPTY( &backendDB[i].be_syncinfo )) { syncinfo_t *si; + + if ( !( backendDB[i].be_search && backendDB[i].be_add && + backendDB[i].be_modify && backendDB[i].be_delete )) { +#ifdef NEW_LOGGING + LDAP_LOG( BACKEND, CRIT, + "backend_startup: database(%d) does not support " + "operations required for syncrepl", i, 0, 0 ); +#else + Debug( LDAP_DEBUG_ANY, + "backend_startup: database(%d) does not support " + "operations required for syncrepl", i, 0, 0 ); +#endif + continue; + } + LDAP_STAILQ_FOREACH( si, &backendDB[i].be_syncinfo, si_next ) { si->si_be = &backendDB[i]; init_syncrepl( si );