ca55f32 539618 - Replication bulk import reports Invalid read/write

Authored and Committed by nhosoi 14 years ago
    539618 - Replication bulk import reports Invalid read/write
    
    https://bugzilla.redhat.com/show_bug.cgi?id=539618
    
    Back off this commit:
      commit 4205086e4f237a52eb9113cd95f9cf87b39e9ed4
      Date:   Mon Feb 22 08:49:49 2010 -0800
    since this change could cause the deadlock between the thread
    eventually calling prot_free, which acquired the agreement lock,
    and other threads waiting for the agreement lock, which prevents
    the protocol stop.
    
    Instead of waiting for prot_thread_main done in prot_free, let
    prot_thread_main check the existence of the protocol field in
    the agreement.  If it's not available, prot_thread_main quits.