]> git.sur5r.net Git - openldap/commitdiff
Add CSN management
authorHoward Chu <hyc@openldap.org>
Wed, 14 Sep 2005 15:18:48 +0000 (15:18 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 14 Sep 2005 15:18:48 +0000 (15:18 +0000)
servers/slapd/overlays/accesslog.c

index 86a790c4b810d11dc5d75c20573c39e0e7b62f79..6bcd9701ebd9fba09fdcb3aa7c2b61b52b9a7420 100644 (file)
@@ -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;