ab4af68 Ticket 49967 - entry cache corruption after failed MODRDN

Authored and Committed by tbordaz 5 years ago
    Ticket 49967 - entry cache corruption after failed MODRDN
    
    Bug Description:
    	During a MODRDN the DN cache is updated to replace
    	source DN with the target DN (modrdn_rename_entry_update_indexes)
    	If later a failure occurs (for example if BETXN_POSTOP fails) and
    	the txn is aborted, the target DN (for the specific entryID) remains
    	in the DN cache.
    
    	If the entry is returned in a search, to build the DN there is
    	a lookup of the DN cache with the entryID. It retrieves the target DN
    	rather than the source DN
    
    Fix Description:
    	In case of failure of the operation, the entry (from the entryID)
    	need to be cleared from the DN cache
    
    https://pagure.io/389-ds-base/issue/49967
    
    Reviewed by: Mark Reynolds
    
    Platforms tested: F27
    
    Flag Day: no
    
    Doc impact: no