mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-22 07:39:35 -05:00
ITS#9538 Populate op2.o_hdr earlier
This commit is contained in:
parent
c34f2a1b29
commit
8f8674fc86
1 changed files with 7 additions and 3 deletions
|
|
@ -1525,6 +1525,7 @@ accesslog_response(Operation *op, SlapReply *rs)
|
||||||
BerVarray vals;
|
BerVarray vals;
|
||||||
Operation op2 = {0};
|
Operation op2 = {0};
|
||||||
SlapReply rs2 = {REP_RESULT};
|
SlapReply rs2 = {REP_RESULT};
|
||||||
|
char csnbuf[LDAP_PVT_CSNSTR_BUFSIZE];
|
||||||
|
|
||||||
/* ITS#9051 Make sure we only remove the callback on a final response */
|
/* ITS#9051 Make sure we only remove the callback on a final response */
|
||||||
if ( rs->sr_type != REP_RESULT && rs->sr_type != REP_EXTENDED &&
|
if ( rs->sr_type != REP_RESULT && rs->sr_type != REP_EXTENDED &&
|
||||||
|
|
@ -1559,6 +1560,12 @@ accesslog_response(Operation *op, SlapReply *rs)
|
||||||
goto skip;
|
goto skip;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
op2.o_hdr = op->o_hdr;
|
||||||
|
op2.o_tag = LDAP_REQ_ADD;
|
||||||
|
op2.o_bd = li->li_db;
|
||||||
|
op2.o_csn.bv_val = csnbuf;
|
||||||
|
op2.o_csn.bv_len = sizeof(csnbuf);
|
||||||
|
|
||||||
if ( !( lo->mask & LOG_OP_WRITES ) ) {
|
if ( !( lo->mask & LOG_OP_WRITES ) ) {
|
||||||
ldap_pvt_thread_mutex_lock( &li->li_op_rmutex );
|
ldap_pvt_thread_mutex_lock( &li->li_op_rmutex );
|
||||||
}
|
}
|
||||||
|
|
@ -1918,9 +1925,6 @@ accesslog_response(Operation *op, SlapReply *rs)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
op2.o_hdr = op->o_hdr;
|
|
||||||
op2.o_tag = LDAP_REQ_ADD;
|
|
||||||
op2.o_bd = li->li_db;
|
|
||||||
op2.o_dn = li->li_db->be_rootdn;
|
op2.o_dn = li->li_db->be_rootdn;
|
||||||
op2.o_ndn = li->li_db->be_rootndn;
|
op2.o_ndn = li->li_db->be_rootndn;
|
||||||
op2.o_req_dn = e->e_name;
|
op2.o_req_dn = e->e_name;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue