From 15ccfea6f015bb1b7d54a0f7ddcbab62acddb1e0 Mon Sep 17 00:00:00 2001 From: Mark Reynolds Date: Wed, 7 Mar 2018 17:26:47 -0500 Subject: [PATCH] Ticket 49596 - repl-monitor.pl fails to find db tombstone/RUV entry Description: The tool was doing a scope "one" search to get the tombstone/RUV entry. This no longer works as it should be a "sub" search. https://pagure.io/389-ds-base/issue/49596 Reviewed by: ? --- ldap/admin/src/scripts/repl-monitor.pl.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ldap/admin/src/scripts/repl-monitor.pl.in b/ldap/admin/src/scripts/repl-monitor.pl.in index 97c1462a5..17708bd97 100755 --- a/ldap/admin/src/scripts/repl-monitor.pl.in +++ b/ldap/admin/src/scripts/repl-monitor.pl.in @@ -429,9 +429,9 @@ sub get_replicas # do a one level search with nsuniqueid in the filter - this will force the use of the # nsuniqueid index instead of the entry dn index, which seems to be unreliable in # heavily loaded servers - $ruv = $conn->search($replicaroot, "one", - "(&(nsuniqueid=ffffffff-ffffffff-ffffffff-ffffffff)(objectClass=nsTombstone))", - 0, qw(nsds50ruv nsruvReplicaLastModified nsds5AgmtMaxCSN)); + $ruv = $conn->search($replicaroot, "sub", + "(&(nsuniqueid=ffffffff-ffffffff-ffffffff-ffffffff)(objectClass=nsTombstone))", + 0, qw(nsds50ruv nsruvReplicaLastModified nsds5AgmtMaxCSN)); next if !$ruv; # this should be an error case . . . for ($ruv->getValues('nsds50ruv')) { -- 2.13.6