3f960dc Ticket #271 - Slow shutdown when you have 100+ replication agreements

Authored and Committed by mreynolds 10 years ago
    Ticket #271 - Slow shutdown when you have 100+ replication agreements
    
    Bug Description:  When you get into the range of 100+ repl agreements, the shutdown
                      can take a very long time to complete.  This is because each agreement
                      is its own thread, and it takes awhile to notify all of the threads.
    
    Fix Description:  While we are shutting down each repl agreement thread, we wait for a full
                      second to see if the shutdown worked, before continuing on to the next
                      thread.  This means its going to take a minimum of 1 second for each
                      agreement.  This fix just reduces the wait to 100ms from 1000ms.
    
    Reviewed by:
    
    https://fedorahosted.org/389/ticket/271