08b0ee8 Ticket 48954 - replication fails because anchorcsn cannot be found

Authored and Committed by lkrispen 7 years ago
    Ticket 48954 - replication fails because anchorcsn cannot be found
    
    Bug Description: the anchorcsn is calculated based on supploier and consumer
                     ruv. If this csn is not found in the changelog
                     replication stops.
    
    Fix Description: Fix consists of two parts
                     1. log start-iteration csn record for all replicas
                        after initialization
                     2. If the csn still cannot be found
                        - log an error
                        - use the closest csn available by calling
                          cursor->c_get with DB_SET_RANGE instead of DB_SET
    
    https://fedorahosted.org/389/ticket/48954
    
    Reviewed by: Noriko, Thierry. thanks