ITS#9738 Remove code deprecated by ITS#9538

This commit is contained in:
Ondřej Kuzník 2021-11-08 10:15:13 +00:00 committed by Quanah Gibson-Mount
parent eb989be408
commit 30baa30bce

View File

@ -1602,7 +1602,7 @@ accesslog_response(Operation *op, SlapReply *rs)
op->o_log_prefix, li->li_db_suffix.bv_val );
assert(0);
}
op2.o_csn = op->o_csn;
slap_queue_csn( &op2, &op->o_csn );
}
}
@ -1943,26 +1943,6 @@ accesslog_response(Operation *op, SlapReply *rs)
/* contextCSN updates may still reach here */
op2.o_dont_replicate = op->o_dont_replicate;
if ( lo->mask & LOG_OP_WRITES ) {
struct berval maxcsn;
char cbuf[LDAP_PVT_CSNSTR_BUFSIZE];
int foundit;
cbuf[0] = '\0';
maxcsn.bv_val = cbuf;
maxcsn.bv_len = sizeof(cbuf);
/* If there was a commit CSN on the main DB,
* we must propagate it to the log DB for its
* own syncprov. Otherwise, don't generate one.
*/
slap_get_commit_csn( op, &maxcsn, &foundit );
if ( !BER_BVISEMPTY( &maxcsn ) ) {
slap_queue_csn( &op2, &op->o_csn );
} else {
attr_merge_normalize_one( e, slap_schema.si_ad_entryCSN,
&op->o_csn, op->o_tmpmemctx );
}
}
op2.o_bd->be_add( &op2, &rs2 );
if ( rs2.sr_err != LDAP_SUCCESS ) {
Debug( LDAP_DEBUG_SYNC, "%s accesslog_response: "