andykimpe / rpms / 389-ds-base

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

Blame SOURCES/0039-Issue-5098-Multiple-issues-around-replication-and-CI.patch

83ce07
From 5594c3dac2df8948d09f148a5a766db77a7b0952 Mon Sep 17 00:00:00 2001
83ce07
From: progier389 <progier@redhat.com>
83ce07
Date: Thu, 20 Jan 2022 12:22:28 +0100
83ce07
Subject: [PATCH 1/3] Issue 5098 - Multiple issues around replication and CI
83ce07
 test test_online_reinit_may_hang (#5109)
83ce07
83ce07
---
83ce07
 ldap/servers/plugins/replication/repl5_replica.c | 2 +-
83ce07
 1 file changed, 1 insertion(+), 1 deletion(-)
83ce07
83ce07
diff --git a/ldap/servers/plugins/replication/repl5_replica.c b/ldap/servers/plugins/replication/repl5_replica.c
83ce07
index c1b3ed73c..253a3ef9f 100644
83ce07
--- a/ldap/servers/plugins/replication/repl5_replica.c
83ce07
+++ b/ldap/servers/plugins/replication/repl5_replica.c
83ce07
@@ -1641,7 +1641,7 @@ replica_check_for_data_reload(Replica *r, void *arg __attribute__((unused)))
83ce07
             return -1;
83ce07
         }
83ce07
 
83ce07
-        if (upper_bound_ruv) {
83ce07
+        if (upper_bound_ruv && ruv_replica_count(upper_bound_ruv) > 0) {
83ce07
             ruv_obj = replica_get_ruv(r);
83ce07
             r_ruv = object_get_data(ruv_obj);
83ce07
             PR_ASSERT(r_ruv);
83ce07
-- 
83ce07
2.37.3
83ce07