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

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