adamwill / 389-ds-base

Forked from 389-ds-base 4 years ago
Clone

7b17c48 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: There was a small window that the search on the next page
    after the previous page abandoned referred the cleaned up simple paged
    object.
    
    This patch introduces a pagedresults_is_abandoned helper function to
    check the simple paged results was abandoned or not with some improvements
    based upon the comments by rmeggins@redhat.com (Thank you!!):
    1) adding locking when getting a simplepaged object in pagedresults_is_
       abandoned_or_notavailable as well as in pagedresults_{un}lock.
    2) sending "Simple Paged Results Search abandoned" if the previous page
       with the same cookie in the same connection was abandoned.
    
    https://fedorahosted.org/389/ticket/48192
    
    Reviewed by rmeggins@redhat.com (Thank you, Rich!!)
    
    (cherry picked from commit e4d83c91fc88fcf9e6c823c608c629ac10e362f8)
    (cherry picked from commit b513a502250f93cfb43df000c2140b27c4ef0d39)
    
        
file modified
+16 -6