/* $OpenLDAP$ */
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
*
- * Copyright 2005-2012 The OpenLDAP Foundation.
+ * Copyright 2005-2013 The OpenLDAP Foundation.
* Portions copyright 2004-2005 Symas Corporation.
* All rights reserved.
*
Modifications *m;
struct berval *b, uuid = BER_BVNULL;
int i;
- int logop;
+ int logop, do_graduate = 0;
slap_verbmasks *lo;
Entry *e = NULL, *old = NULL, *e_uuid = NULL;
char timebuf[LDAP_LUTIL_GENTIME_BUFSIZE+8];
if (( lo->mask & LOG_OP_WRITES ) && !BER_BVISEMPTY( &op->o_csn )) {
slap_queue_csn( &op2, &op->o_csn );
+ do_graduate = 1;
}
op2.o_bd->be_add( &op2, &rs2 );
if ( e == op2.ora_e ) entry_free( e );
e = NULL;
+ if ( do_graduate ) {
+ slap_graduate_commit_csn( &op2 );
+ if ( op2.o_csn.bv_val )
+ op->o_tmpfree( op2.o_csn.bv_val, op->o_tmpmemctx );
+ }
done:
if ( lo->mask & LOG_OP_WRITES )
0, 0, 0 );
return -1;
}
-#ifndef LDAP_DEVEL
- (*lattrs[i].ad)->ad_type->sat_flags |= SLAP_AT_HIDE;
-#endif
}
for ( i=0; locs[i].ot; i++ ) {
0, 0, 0 );
return -1;
}
-#ifndef LDAP_DEVEL
- (*locs[i].oc)->soc_flags |= SLAP_OC_HIDE;
-#endif
}
return overlay_register(&accesslog);