ITS#6469, don't touch op_attrs when updatedn is modifying contextCSN

This commit is contained in:
Ralf Haferkamp 2010-02-05 11:49:49 +00:00
parent 376cdb1e92
commit bca52e1b18

View File

@ -422,7 +422,13 @@ txnReturn:
ctrls[num_ctrls] = NULL;
slap_mods_opattrs( op, &op->orm_modlist, 1 );
/* Don't touch the opattrs, if this is a contextCSN update
* initiated from updatedn */
if ( !be_isupdate(op) || !op->orm_modlist || op->orm_modlist->sml_next ||
op->orm_modlist->sml_desc != slap_schema.si_ad_contextCSN ) {
slap_mods_opattrs( op, &op->orm_modlist, 1 );
}
if( 0 ) {
retry: /* transaction retry */