a7ae8de Ticket #627 - ns-slapd crashes sporadically with segmentation fault in libslapd.so

Authored and Committed by nhosoi 11 years ago
    Ticket #627 - ns-slapd crashes sporadically with segmentation fault in libslapd.so
    
    Bug Description: Schema reload task (schema-reload.pl) was not
    thread safe.
    
    Fix Description: Attribute Syntax is stored in the hash and
    retrieved based upon the attribute syntax.  When Schema reload
    task is invoked, the attribute syntax objects were completely
    replaced ignoring the lock protection.  This patch protects
    the attribute syntax replacement (attr_syntax_delete_all_for_
    schemareload) with the write lock.  Also, attribute syntax
    object maintains the reference count.  The schema reload
    respects the reference count instead of blindly deleting them.
    
    https://fedorahosted.org/389/ticket/627
    
    Reviewed by Rich (Thank you!!)
    (cherry picked from commit 81b997480956b2b6fa3a5d0e8d6abf5113a06400)
    
        
file modified
+86 -30
file modified
+28 -20