5e45f45 Ticket #346 - Slow ldapmodify operation time for large quantities of multi-valued attribute values

Authored and Committed by nhosoi 9 years ago
    Ticket #346 - Slow ldapmodify operation time for large quantities of multi-valued attribute values
    
    Description: slapi_entry_add_value is used to add values for sorting,
    which did not pass the attribute syntax info and the fallback compare
    algorithm was used.  It sometimes different from the attribute syntax
    based sorting and failed to find out an attribute.  This patch passes
    an attribute syntax info for sorting.
    
    Plus, featuring slapi_berval_cmp for the fallback compare algorithm.
    It is closer to the syntax based sorting.
    
    https://fedorahosted.org/389/ticket/346
    
    Reviewed by rmeggins@redhat.com (Thank you, Rich!)
    (cherry picked from commit 136fa64f95263ffcaca5e855b771b5d377e3de52)
    (cherry picked from commit 821297df835b7d5235d66b592613c89d991d4049)
    (cherry picked from commit e97f2b8f2a42d4ceca4020614fd7388e4e319bab)
    
        
file modified
+1 -1