mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
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)
This commit is contained in:
parent
4dd4ecd620
commit
2f81cc64b1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user