ca407f8 Ticket #47764 - Problem with deletion while replicated

Authored and Committed by nhosoi 9 years ago
    Ticket #47764 - Problem with deletion while replicated
    
    Bug description: When checking a child entry on a node, it only
    checked the first position, which was normally "deleted" if there
    were no more children. But in some cases, a tombstoned child was
    placed there.  If it occurred, even though there were no live child
    any more, _entryrdn_delete_key returned "has children" and the delete
    operation failed.
    
    Fix description: This patch checks all the children of the to-be-
    deleted node and if there is no child or all of them are tombstones,
    it goes to the next process.  Also, the fixed a typo reported by
    chatfield (Thank you!!)
    
    https://fedorahosted.org/389/ticket/47764
    
    Reviewed by chatfield and mreynolds@redhat.com (Thank you both!!)
    (cherry picked from commit 832253ea96b83e7ebc16fe507d77090e87aed1c2)
    (cherry picked from commit 86b34ca0a002715a263a56b1e8c870dd3035bce4)
    (cherry picked from commit efa23ced2a6e3de3389d9b801329066f511bc38c)