ac8ada3 Ticket 47782 - Parent numbordinate count can be incorrectly updated if an error occurs

Authored and Committed by mreynolds 9 years ago
    Ticket 47782 - Parent numbordinate count can be incorrectly updated if an error occurs
    
    Bug Description:  When adding and deleting entries there is a small chance that the modified
                      parent entry(numbsubordinates) could be replaced in the entry cache, even
                      if the operation fails.
    
    Fix Description:  For deletes we can simply move the cache entry switching to a safe location,
                      but for adds we need to unswitch the parent's entry in the cache.
    
    https://fedorahosted.org/389/ticket/47782
    
    Reviewed by: nhosoi(Thanks!)