mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
rework previous commit?
This commit is contained in:
parent
2bb6555726
commit
447b065abd
@ -2323,14 +2323,16 @@ syncprov_db_open(
|
|||||||
strcpy( ctxcsnbuf, si->si_ctxcsnbuf );
|
strcpy( ctxcsnbuf, si->si_ctxcsnbuf );
|
||||||
}
|
}
|
||||||
be_entry_release_rw( op, e, 0 );
|
be_entry_release_rw( op, e, 0 );
|
||||||
if ( !BER_BVISEMPTY( &si->si_ctxcsn ) ) {
|
if ( BER_BVISEMPTY( &si->si_ctxcsn ) ) {
|
||||||
|
si->si_ctxcsn.bv_len = sizeof( si->si_ctxcsnbuf );
|
||||||
|
slap_get_csn( op, &si->si_ctxcsn, 0 );
|
||||||
|
}
|
||||||
op->o_bd->bd_info = (BackendInfo *)on;
|
op->o_bd->bd_info = (BackendInfo *)on;
|
||||||
op->o_req_dn = be->be_suffix[0];
|
op->o_req_dn = be->be_suffix[0];
|
||||||
op->o_req_ndn = be->be_nsuffix[0];
|
op->o_req_ndn = be->be_nsuffix[0];
|
||||||
op->ors_scope = LDAP_SCOPE_SUBTREE;
|
op->ors_scope = LDAP_SCOPE_SUBTREE;
|
||||||
ldap_pvt_thread_create( &tid, 0, syncprov_db_otask, op );
|
ldap_pvt_thread_create( &tid, 0, syncprov_db_otask, op );
|
||||||
ldap_pvt_thread_join( tid, NULL );
|
ldap_pvt_thread_join( tid, NULL );
|
||||||
}
|
|
||||||
} else if ( SLAP_SYNC_SHADOW( op->o_bd )) {
|
} else if ( SLAP_SYNC_SHADOW( op->o_bd )) {
|
||||||
/* If we're also a consumer, and we didn't find the context entry,
|
/* If we're also a consumer, and we didn't find the context entry,
|
||||||
* then don't generate anything, wait for our provider to send it
|
* then don't generate anything, wait for our provider to send it
|
||||||
|
Loading…
Reference in New Issue
Block a user