mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-29 02:59:34 -05:00
backend operations check
This commit is contained in:
parent
4bb948620a
commit
2b77fb424c
1 changed files with 15 additions and 0 deletions
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Reference in a new issue