From 5522340eb4b643cab099993bec86ab608eef5c79 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Thu, 22 Mar 2007 21:40:20 +0000
Subject: [PATCH] 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).
---
opendj-sdk/opends/src/server/org/opends/server/core/SearchOperation.java | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/opendj-sdk/opends/src/server/org/opends/server/core/SearchOperation.java b/opendj-sdk/opends/src/server/org/opends/server/core/SearchOperation.java
index 25e88cb..45f54d3 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/core/SearchOperation.java
+++ b/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;
+ }
}
--
Gitblit v1.10.0