sgouvern / 389-ds-base

Forked from 389-ds-base 4 years ago
Clone

f74244a Ticket 509 - lock-free access to be->be_suffixlock

3 files Authored by mreynolds 11 years ago, Committed by rmeggins 11 years ago,
    Ticket 509 - lock-free access to be->be_suffixlock
    
    Bug Description:  Remove locking around the be_suffixcount
    
    Fix Description:  Use atomic counter for the suffix count, and remove
                      the lock.  The "count" is all we need to safely transverse
                      the array.
    
    https://fedorahosted.org/389/ticket/509
    
    Reviewed by: Ludwig & richm(Thanks!)
    (cherry picked from commit 06a26b6cdbd7d7afbca8e0060bcd51f4993e7e0d)
    
        
file modified
+18 -16
file modified
+1 -1