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

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