Wednesday, March 7, 2018

[389-commits] [389-ds-base] 01/01: Ticket 49596 - repl-monitor.pl fails to find db tombstone/RUV entry

This is an automated email from the git hooks/post-receive script.

mreynolds pushed a commit to branch master
in repository 389-ds-base.

commit 5e3f428bcb8deacf86a72e13e17e451e4e155254
Author: Mark Reynolds <mreynolds@redhat.com>
Date: Wed Mar 7 17:26:47 2018 -0500

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: firstyear(Thanks!)
---
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 97c1462..17708bd 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')) {

--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
389-commits mailing list -- 389-commits@lists.fedoraproject.org
To unsubscribe send an email to 389-commits-leave@lists.fedoraproject.org

No comments:

Post a Comment