backend operations check

This commit is contained in:
Jong Hyuk Choi 2004-03-09 20:43:19 +00:00
parent 4bb948620a
commit 2b77fb424c

View file

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