1d18dd0 Ticket #48192 - Individual abandoned simple paged results request has no chance to be cleaned up

Authored and Committed by nhosoi 8 years ago
    Ticket #48192 - Individual abandoned simple paged results request has no chance to be cleaned up
    
    Description: When a simple paged results is abandoned immediately and
    asynchronously just after the request, the abandon request has a chance
    to be handled before the simple paged results control is received and
    processed.  In the case, the search could be executed and the search
    result structure could be leaked.
    
    This patch adds more abandon checks.  In op_shared_search, after the
    send_results_ext call, if the SLAPI_OP_STATUS_ABANDONED bit is set in
    the status in the operation object, it cleans up the search results
    again, which gives the second chance.
    
    https://fedorahosted.org/389/ticket/48192
    
    Reviewed by tbordaz@redhat.com (Thank you so much, Thierry!!)
    
        
file modified
+4 -6
file modified
+23 -13