16e5ce7 Ticket 47654 - Fix regression (deadlock/crash)

Authored and Committed by mreynolds 9 years ago
    Ticket 47654 - Fix regression (deadlock/crash)
    
    Bug Description:  dblayer_close() is called for shutdowns, and when the backend
                      is being disabled for certain tasks like db2bak/bak2db.  The
                      original fix assuemd this fucntion was only called during shutdowns.
    
    Fix Description:  Only free certain ersouces when the server is actually shutting
                      down.
    
    https://fedorahosted.org/389/ticket/47654
    
    Reviewed by: rmeggins(Thanks!)