mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-22 07:39:35 -05:00
ITS#5177 pass new entries in search_response for Persist mode
This commit is contained in:
parent
8bb39495c7
commit
a79bc9195d
1 changed files with 14 additions and 10 deletions
|
|
@ -1968,16 +1968,20 @@ syncprov_search_response( Operation *op, SlapReply *rs )
|
||||||
rs->sr_entry->e_name.bv_val, 0, 0 );
|
rs->sr_entry->e_name.bv_val, 0, 0 );
|
||||||
return LDAP_SUCCESS;
|
return LDAP_SUCCESS;
|
||||||
}
|
}
|
||||||
/* Make sure entry is less than the snapshot'd contextCSN */
|
|
||||||
for ( i=0; i<ss->ss_numcsns; i++ ) {
|
/* If not a persistent search */
|
||||||
if ( sid == ss->ss_sids[i] && ber_bvcmp( &a->a_nvals[0],
|
if ( !ss->ss_so ) {
|
||||||
&ss->ss_ctxcsn[i] ) > 0 ) {
|
/* Make sure entry is less than the snapshot'd contextCSN */
|
||||||
Debug( LDAP_DEBUG_SYNC,
|
for ( i=0; i<ss->ss_numcsns; i++ ) {
|
||||||
"Entry %s CSN %s greater than snapshot %s\n",
|
if ( sid == ss->ss_sids[i] && ber_bvcmp( &a->a_nvals[0],
|
||||||
rs->sr_entry->e_name.bv_val,
|
&ss->ss_ctxcsn[i] ) > 0 ) {
|
||||||
a->a_nvals[0].bv_val,
|
Debug( LDAP_DEBUG_SYNC,
|
||||||
ss->ss_ctxcsn[i].bv_val );
|
"Entry %s CSN %s greater than snapshot %s\n",
|
||||||
return LDAP_SUCCESS;
|
rs->sr_entry->e_name.bv_val,
|
||||||
|
a->a_nvals[0].bv_val,
|
||||||
|
ss->ss_ctxcsn[i].bv_val );
|
||||||
|
return LDAP_SUCCESS;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue