]> git.sur5r.net Git - openldap/commitdiff
ITS#6915 fix op timestamps
authorHoward Chu <hyc@openldap.org>
Sun, 24 Apr 2011 03:56:11 +0000 (20:56 -0700)
committerHoward Chu <hyc@openldap.org>
Sun, 24 Apr 2011 03:56:11 +0000 (20:56 -0700)
This has always been broken since memberof was first written

servers/slapd/overlays/memberof.c

index 12055c43554bd513265ab175429d98e381de2b73..bb2b75134f918e86c455589c530e5a43fccb45a3 100644 (file)
@@ -406,6 +406,7 @@ memberof_value_modify(
                LDAP_SLIST_INSERT_HEAD(&op2.o_extra, &oex, oe_next);
                BER_BVZERO( &op2.o_csn );
                op2.o_bd->bd_info = (BackendInfo *)on->on_info;
+               slap_op_time( &op2.o_time, &op2.o_tincr );
                (void)op->o_bd->be_modify( &op2, &rs2 );
                op2.o_bd->bd_info = bi;
                LDAP_SLIST_REMOVE(&op2.o_extra, &oex, OpExtra, oe_next);
@@ -449,6 +450,7 @@ memberof_value_modify(
                LDAP_SLIST_INSERT_HEAD(&op2.o_extra, &oex, oe_next);
                BER_BVZERO( &op2.o_csn );
                op2.o_bd->bd_info = (BackendInfo *)on->on_info;
+               slap_op_time( &op2.o_time, &op2.o_tincr );
                (void)op->o_bd->be_modify( &op2, &rs2 );
                op2.o_bd->bd_info = bi;
                LDAP_SLIST_REMOVE(&op2.o_extra, &oex, OpExtra, oe_next);