4053587 Ticket 48964 - cleanallruv changelog purging removes wrong

Authored and Committed by mreynolds 7 years ago
    Ticket 48964 - cleanallruv changelog purging removes wrong
     rid
    
    Bug Description:  A regression from the previous patch uses the local replica
                      object to locate the correct changelog file, but the rid to
                      be clean is not the same rid from the replica object.  So the
                      local replica object's rid is used accidentally to purge the
                      change log.
    
    Fix Description:  Instead if passing the replica object to the changelog purging
                      code, create a new purge_data struct to hold all the neccessary
                      data to purge the correct changelog file and the cleaned rid.
    
    https://fedorahosted.org/389/ticket/48964
    
    Reviewed by: nhosoi(Thanks!)
    
    (cherry picked from commit a38d76d27970b5b6facf2ffbd1bce9d6979e6297)