From 30baa30bce6d0a8c14dbf089293dd4443f185be9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Kuzn=C3=ADk?= Date: Mon, 8 Nov 2021 10:15:13 +0000 Subject: [PATCH] ITS#9738 Remove code deprecated by ITS#9538 --- servers/slapd/overlays/accesslog.c | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/servers/slapd/overlays/accesslog.c b/servers/slapd/overlays/accesslog.c index 6c9825dd3a..fd121879ba 100644 --- a/servers/slapd/overlays/accesslog.c +++ b/servers/slapd/overlays/accesslog.c @@ -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: "