]> git.sur5r.net Git - openldap/commitdiff
since o_csn is always allocated on the thread's slab, and since CSNs always have...
authorPierangelo Masarati <ando@openldap.org>
Fri, 6 Jan 2006 16:26:36 +0000 (16:26 +0000)
committerPierangelo Masarati <ando@openldap.org>
Fri, 6 Jan 2006 16:26:36 +0000 (16:26 +0000)
servers/slapd/ctxcsn.c

index 16b8dff1502a1821baad8bdaf4c30558e4e72696..d00eff2bfc7eca5867188098f9c3ee5f3d0e0339 100644 (file)
@@ -166,7 +166,7 @@ slap_queue_csn(
        ldap_pvt_thread_mutex_lock( op->o_bd->be_pcl_mutexp );
 
        ber_dupbv( &pending->ce_csn, csn );
-       ber_dupbv_x( &op->o_csn, &pending->ce_csn, op->o_tmpmemctx );
+       ber_bvreplace_x( &op->o_csn, &pending->ce_csn, op->o_tmpmemctx );
        pending->ce_connid = op->o_connid;
        pending->ce_opid = op->o_opid;
        pending->ce_state = SLAP_CSN_PENDING;