From: Howard Chu Date: Wed, 14 Sep 2005 15:18:48 +0000 (+0000) Subject: Add CSN management X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~427 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5e1ab5aba30184064b354c4f955054d33d5b1024;p=openldap Add CSN management --- diff --git a/servers/slapd/overlays/accesslog.c b/servers/slapd/overlays/accesslog.c index 86a790c4b8..6bcd9701eb 100644 --- a/servers/slapd/overlays/accesslog.c +++ b/servers/slapd/overlays/accesslog.c @@ -969,7 +969,14 @@ static int accesslog_response(Operation *op, SlapReply *rs) { op2.ora_e = e; op2.o_callback = &nullsc; + if ( lo->mask & LOG_OP_WRITES ) { + slap_get_commit_csn( op, NULL, &bv ); + attr_merge_one( e, slap_schema.si_ad_entryCSN, &bv, NULL ); + slap_queue_csn( &op2, &bv ); + } + op2.o_bd->be_add( &op2, &rs2 ); + slap_graduate_commit_csn( &op2 ); entry_free( e ); return SLAP_CB_CONTINUE;