Blame SOURCES/0040-Issue-4764-replicated-operation-sometime-checks-ACI-.patch

36233f
From 76d1b4ff8efdff1dbe6139b51da656880d7a8ec6 Mon Sep 17 00:00:00 2001
36233f
From: progier389 <progier@redhat.com>
36233f
Date: Wed, 26 May 2021 16:07:43 +0200
36233f
Subject: [PATCH 2/2] Issue 4764 - replicated operation sometime checks ACI
36233f
 (#4783)
36233f
36233f
---
36233f
 ldap/servers/slapd/connection.c | 8 ++++++++
36233f
 1 file changed, 8 insertions(+)
36233f
36233f
diff --git a/ldap/servers/slapd/connection.c b/ldap/servers/slapd/connection.c
36233f
index 1883fe711..02c02ffb6 100644
36233f
--- a/ldap/servers/slapd/connection.c
36233f
+++ b/ldap/servers/slapd/connection.c
36233f
@@ -1764,6 +1764,14 @@ connection_threadmain()
36233f
             }
36233f
         }
36233f
 
36233f
+        /*
36233f
+         * Fix bz 1931820 issue (the check to set OP_FLAG_REPLICATED may be done
36233f
+         * before replication session is properly set).
36233f
+         */
36233f
+        if (replication_connection) {
36233f
+            operation_set_flag(op, OP_FLAG_REPLICATED);
36233f
+        }
36233f
+
36233f
         /*
36233f
          * Call the do_<operation> function to process this request.
36233f
          */
36233f
-- 
36233f
2.31.1
36233f