mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
first round of CSN normalization consequences
This commit is contained in:
parent
faa52ce410
commit
5ed5bc5803
@ -1906,8 +1906,11 @@ accesslog_db_root(
|
||||
|
||||
a = attr_find( e_ctx->e_attrs, slap_schema.si_ad_contextCSN );
|
||||
if ( a ) {
|
||||
attr_merge( e, slap_schema.si_ad_entryCSN, a->a_vals, NULL );
|
||||
attr_merge( e, a->a_desc, a->a_vals, NULL );
|
||||
/* FIXME: contextCSN could have multiple values!
|
||||
* should select the one with the server's SID */
|
||||
attr_merge_one( e, slap_schema.si_ad_entryCSN,
|
||||
&a->a_vals[0], &a->a_nvals[0] );
|
||||
attr_merge( e, a->a_desc, a->a_vals, a->a_nvals );
|
||||
}
|
||||
be_entry_release_rw( op, e_ctx, 0 );
|
||||
}
|
||||
|
@ -1709,6 +1709,7 @@ syncrepl_message_to_entry(
|
||||
*/
|
||||
if ( is_ctx && !strcasecmp( tmp.sml_type.bv_val,
|
||||
slap_schema.si_ad_contextCSN->ad_cname.bv_val )) {
|
||||
if ( tmp.sml_nvalues ) ber_bvarray_free( tmp.sml_nvalues );
|
||||
ber_bvarray_free( tmp.sml_values );
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user