From: Pierangelo Masarati Date: Fri, 6 Jan 2006 16:26:36 +0000 (+0000) Subject: since o_csn is always allocated on the thread's slab, and since CSNs always have... X-Git-Tag: OPENLDAP_REL_ENG_2_4_BP~437 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2f81cc64b13751732da4dbb788253e718d2a54b7;p=openldap since o_csn is always allocated on the thread's slab, and since CSNs always have the same length, reuse memory (part of o_csn memory handling cleanup) --- diff --git a/servers/slapd/ctxcsn.c b/servers/slapd/ctxcsn.c index 16b8dff150..d00eff2bfc 100644 --- a/servers/slapd/ctxcsn.c +++ b/servers/slapd/ctxcsn.c @@ -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;