first round of CSN normalization consequences

This commit is contained in:
Pierangelo Masarati 2007-08-28 18:38:27 +00:00
parent faa52ce410
commit 5ed5bc5803
2 changed files with 6 additions and 2 deletions

View File

@ -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 );
}

View File

@ -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;
}