andykimpe / rpms / 389-ds-base

Forked from rpms/389-ds-base 5 months ago
Clone

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

5d81fc
From 7573c62a2e61293a4800e67919d79341fa1a1532 Mon Sep 17 00:00:00 2001
36233f
From: progier389 <progier@redhat.com>
36233f
Date: Wed, 26 May 2021 16:07:43 +0200
5d81fc
Subject: [PATCH 10/12] Issue 4764 - replicated operation sometime checks ACI
36233f
 (#4783)
36233f
5d81fc
(cherry picked from commit 0cfdea7abcacfca6686a6cf84dbf7ae1167f3022)
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
5d81fc
index c7a15e775..e0c1a52d2 100644
36233f
--- a/ldap/servers/slapd/connection.c
36233f
+++ b/ldap/servers/slapd/connection.c
5d81fc
@@ -1771,6 +1771,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
-- 
5d81fc
2.26.3
36233f