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

91ce38
From 7573c62a2e61293a4800e67919d79341fa1a1532 Mon Sep 17 00:00:00 2001
91ce38
From: progier389 <progier@redhat.com>
91ce38
Date: Wed, 26 May 2021 16:07:43 +0200
91ce38
Subject: [PATCH 10/12] Issue 4764 - replicated operation sometime checks ACI
91ce38
 (#4783)
91ce38
91ce38
(cherry picked from commit 0cfdea7abcacfca6686a6cf84dbf7ae1167f3022)
91ce38
---
91ce38
 ldap/servers/slapd/connection.c | 8 ++++++++
91ce38
 1 file changed, 8 insertions(+)
91ce38
91ce38
diff --git a/ldap/servers/slapd/connection.c b/ldap/servers/slapd/connection.c
91ce38
index c7a15e775..e0c1a52d2 100644
91ce38
--- a/ldap/servers/slapd/connection.c
91ce38
+++ b/ldap/servers/slapd/connection.c
91ce38
@@ -1771,6 +1771,14 @@ connection_threadmain()
91ce38
             }
91ce38
         }
91ce38
 
91ce38
+        /*
91ce38
+         * Fix bz 1931820 issue (the check to set OP_FLAG_REPLICATED may be done
91ce38
+         * before replication session is properly set).
91ce38
+         */
91ce38
+        if (replication_connection) {
91ce38
+            operation_set_flag(op, OP_FLAG_REPLICATED);
91ce38
+        }
91ce38
+
91ce38
         /*
91ce38
          * Call the do_<operation> function to process this request.
91ce38
          */
91ce38
-- 
91ce38
2.26.3
91ce38