mreynolds / 389-ds-base

Forked from 389-ds-base 6 years ago
Clone

08e8733 Bug 711679 - unresponsive LDAP service when deleting vlv on replica

1 file Authored by nhosoi 12 years ago, Committed by rmeggins 12 years ago,
    Bug 711679 - unresponsive LDAP service when deleting vlv on replica
    
    https://bugzilla.redhat.com/show_bug.cgi?id=711679
    
    Description: Normal operation acquires rlock on be_lock, then locks
    inst_config_mutex.  Function instance_set_busy_and_readonly used to
    lock them in the opposite order, which caused the server deadlock.
    This patch fixes it by releasing inst_config_mutex before acquiring
    wlock on be_lock in slapi_mtn_be_set_readonly.
    (cherry picked from commit b554264e6b6056414d17044991c3b5ec839d0981)
    (cherry picked from commit fc7ed8fb8432827b5c4022dbbc445f5e121f4d4a)