mreynolds / 389-ds-base

Forked from 389-ds-base 6 years ago
Clone

7de9007 Bug 617013 - repl-monitor.pl use cpu upto 90%

Authored and Committed by rmeggins 13 years ago
    Bug 617013  - repl-monitor.pl use cpu upto 90%
    
    https://bugzilla.redhat.com/show_bug.cgi?id=617013
    Resolves: bug 617013
    Bug Description: repl-monitor.pl use cpu upto 90%
    Reviewed by: nhosoi (Thanks!)
    Branch: Directory_Server_8_2_Branch
    Fix Description: The script recursively looks for servers - looks at servers
    in replication agreements, adds them, then looks for replication agreements
    on those servers, etc.  When it added the servers, the logic was faulty for
    seeing if the server was already in the list.  So it just kept recursing
    forever.  One of the problems was that the script did not like a hostname
    with a non \w char in it, such as the "-" char.  There was another problem
    with matching a server without a shadowport.
    Platforms tested: RHEL5 x86_64
    Flag Day: no
    Doc impact: no