Commit 30baa30b authored by Ondřej Kuzník's avatar Ondřej Kuzník Committed by Quanah Gibson-Mount
Browse files

ITS#9738 Remove code deprecated by ITS#9538

parent eb989be4
......@@ -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: "
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment