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

neil_a_wilson
22.40.2007 502d18601485d50599a886e7a983471842b5b688
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
opends/src/server/org/opends/server/core/SearchOperation.java 11 ●●●●● patch | view | raw | blame | history
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;
    }
  }