mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-31 14:50:34 +08:00
ITS#9691 Allow empty DB to host a persistent syncrepl session
This commit is contained in:
parent
75636a407e
commit
9e3184763c
@ -3129,6 +3129,14 @@ syncprov_op_search( Operation *op, SlapReply *rs )
|
||||
op->o_callback = cb;
|
||||
ldap_pvt_thread_mutex_destroy( &so.s_mutex );
|
||||
|
||||
/* Special case, if client knows nothing, nor do we, keep going */
|
||||
if ( srs->sr_state.numcsns == 0 && rs->sr_err == LDAP_NO_SUCH_OBJECT ) {
|
||||
Debug( LDAP_DEBUG_SYNC, "%s syncprov_op_search: "
|
||||
"both our DB and client empty, ignoring NO_SUCH_OBJECT\n",
|
||||
op->o_log_prefix );
|
||||
rs->sr_err = LDAP_SUCCESS;
|
||||
}
|
||||
|
||||
if ( rs->sr_err != LDAP_SUCCESS ) {
|
||||
send_ldap_result( op, rs );
|
||||
return rs->sr_err;
|
||||
|
Loading…
x
Reference in New Issue
Block a user