From 744f6acf66f7ecc9c6a0b60da8effe7c0c3b8c7a Mon Sep 17 00:00:00 2001
From: Quanah Gibson-Mount <quanah@openldap.org>
Date: Thu, 15 Apr 2010 23:41:52 +0000
Subject: [PATCH] ITS#6519

---
 CHANGES                            | 1 +
 servers/slapd/overlays/accesslog.c | 1 +
 2 files changed, 2 insertions(+)

diff --git a/CHANGES b/CHANGES
index c8fb3ab198..a99be1c477 100644
--- a/CHANGES
+++ b/CHANGES
@@ -18,6 +18,7 @@ OpenLDAP 2.4.22 Engineering
 	Fixed slapd sasl auxprop_lookup (ITS#6441)
 	Fixed slapd sasl auxprop ssf (ITS#5195)
 	Fixed slapd syncrepl for unknown attrs and delta-sync (ITS#6473)
+	Fixed slapo-accesslog to not replicate internal purges (ITS#6519)
 	Fixed slapd-bdb contextCSN updates from updatedn (ITS#6469)
 	Fixed slapd-bdb lockobj zeroing (ITS#6501)
 	Fixed slapo-collect REP_ENTRY flag handling (ITS#5340,ITS#6423)
diff --git a/servers/slapd/overlays/accesslog.c b/servers/slapd/overlays/accesslog.c
index 7a52a928ea..75296693e3 100644
--- a/servers/slapd/overlays/accesslog.c
+++ b/servers/slapd/overlays/accesslog.c
@@ -664,6 +664,7 @@ accesslog_purge( void *ctx, void *arg )
 		op->o_tag = LDAP_REQ_DELETE;
 		op->o_callback = &nullsc;
 		op->o_csn = pd.csn;
+		op->o_dont_replicate = 1;
 
 		for (i=0; i<pd.used; i++) {
 			op->o_req_dn = pd.dn[i];
-- 
GitLab