From 2b77fb424c29c08206fbd7f27917956187e09ad7 Mon Sep 17 00:00:00 2001 From: Jong Hyuk Choi Date: Tue, 9 Mar 2004 20:43:19 +0000 Subject: [PATCH] backend operations check --- servers/slapd/backend.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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 ); -- 2.39.5