if ( lo->mask & LOG_OP_WRITES ) {
slap_callback *cb;
- /* Most internal ops are not logged */
- if ( op->o_dont_replicate) {
- /* Let contextCSN updates from syncrepl thru; the underlying
- * syncprov needs to see them. Skip others.
- */
- if (( op->o_tag != LDAP_REQ_MODIFY ||
- op->orm_modlist->sml_op != LDAP_MOD_REPLACE ||
- op->orm_modlist->sml_desc != slap_schema.si_ad_contextCSN ) &&
- op->orm_no_opattrs )
+ /* These internal ops are not logged */
+ if ( op->o_dont_replicate )
return SLAP_CB_CONTINUE;
- }
ldap_pvt_thread_mutex_lock( &li->li_log_mutex );
old = li->li_old;
int doit = 0;
/* These internal ops are not logged */
- if ( op->o_dont_replicate ) {
- /* Let contextCSN updates from syncrepl thru; the underlying
- * syncprov needs to see them. Skip others.
- */
- if (( op->o_tag != LDAP_REQ_MODIFY ||
- op->orm_modlist->sml_op != LDAP_MOD_REPLACE ||
- op->orm_modlist->sml_desc != slap_schema.si_ad_contextCSN ) &&
- op->orm_no_opattrs )
+ if ( op->o_dont_replicate )
return SLAP_CB_CONTINUE;
- /* give this a unique timestamp */
- op->o_tincr++;
- if ( op->o_tincr >= 1000000 ) {
- op->o_tincr -= 1000000;
- op->o_time++;
- }
- }
logop = accesslog_op2logop( op );
lo = logops+logop+EN_OFFSET;