mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

neil_a_wilson
22.40.2007 5522340eb4b643cab099993bec86ab608eef5c79
Update the search operation to allow persistent searches to bypass size limit
and time limit restrictions once they have gotten past the initial search
phase (if changesOnly is false).

OpenDS Issue Number: 1406
1 files modified
11 ■■■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/core/SearchOperation.java 11 ●●●●● patch | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/core/SearchOperation.java
@@ -2097,11 +2097,20 @@
    processingStopTime = System.currentTimeMillis();
    // Send the search result done message to the client.
    // If everything is successful to this point and it is not a persistent
    // search, then send the search result done message to the client.
    // Otherwise, we'll want to make the size and time limit values unlimited
    // to ensure that the remainder of the persistent search isn't subject to
    // those restrictions.
    if (sendResponse)
    {
      sendSearchResultDone();
    }
    else
    {
      sizeLimit = 0;
      timeLimit = 0;
    }
  }