4bdaacd Bug 748575 - part 2 - rhds81 modrdn operation and 100% cpu use in replication

Authored and Committed by rmeggins 12 years ago
    Bug 748575 - part 2 - rhds81 modrdn operation and 100% cpu use in replication
    
    https://bugzilla.redhat.com/show_bug.cgi?id=748575
    Resolves: bug 748575
    Bug Description: rhds81 modrdn operation and 100% cpu use in replication
    Reviewed by: nhosoi (Thanks!)
    Branch: Directory_Server_8_2_Branch
    Fix Description: The entry code takes great pains to add or insert in
    ascending order the dncsn to the e_dncsnset.  But the only place this is
    ever used is in the call to entry_get_dncsn, which just calls
    csnset_get_last_csn, which just gets the last one in the list.  Since the
    last one in the list is the one with the greatest csn, and the function
    csnset_update_csn already stores the greatest csn, we can just use that
    function, rather than using csnset_add and insert and building a potentially
    very large list.  This should also have the effect of making importing
    a replica init LDIF faster.
    Platforms tested: RHEL6 x86_64
    Flag Day: no
    Doc impact: no
    (cherry picked from commit c07717326879119f321512d87e558b69045a86fd)
    
        
file modified
+2 -15