659b777 Ticket 47629 - random crashes related to sync repl

Authored and Committed by lkrispen 10 years ago
    Ticket 47629 - random crashes related to sync repl
    
    Bug Description:  if there is no cookie, the persist thread starts
            before the initial refresh is complete, both threads use the
    	same operation structure and there is a race condition
    	on setting and freeing the search entry.
    
    Fix Description:   ensure that the persist thread only starts sending
    	updates once the refresh is complete
    
    https://fedorahosted.org/389/ticket/47629
    
    Reviewed by: Rich, thanks