adamwill / 389-ds-base

Forked from 389-ds-base 4 years ago
Clone

9901025 Ticket 50260 - Invalid cache flushing improvements

Authored and Committed by mreynolds 5 years ago
    Ticket 50260 - Invalid cache flushing improvements
    
    Description:  The original version of the fix only checked if backend
                  transaction "post" operation plugins failed, but it did
                  not check for errors from the backend transaction "pre"
                  operation plugin.  To address this we flush invalid
                  entries whenever any error occurs.
    
                  We were also not flushing invalid cache entries when
                  modrdn errors occurred.  Modrdns only make changes to
                  the DN hashtable inside the entry cache, but we were only
                  checking the ID hashtable.  So we also need to check the
                  DN hashtable in the entry cache for invalid entries.
    
    https://pagure.io/389-ds-base/issue/50260
    
    Reviewed by: firstyear & tbordaz(Thanks!!)
    
    (cherry picked from commit 33fbced25277b88695bfba7262e606380e9d891f)