From f0b6debbaa18a034b2f702261b3ff07af9d92b1b Mon Sep 17 00:00:00 2001
From: boli <boli@localhost>
Date: Thu, 24 Aug 2006 15:50:33 +0000
Subject: [PATCH] Add a configuration option to limit the number of entries that will be checked for matches during a search operation. A value of -1 or 0 will remove the limit, like the behavior of DS 5 and 6. Changed the "unlimited" values of size and time limits to be consistent with the lookthrough limit (-1 or 0). 

---
 opendj-sdk/opends/src/server/org/opends/server/messages/JebMessages.java |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/opendj-sdk/opends/src/server/org/opends/server/messages/JebMessages.java b/opendj-sdk/opends/src/server/org/opends/server/messages/JebMessages.java
index 2467bf5..802971e 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/messages/JebMessages.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/messages/JebMessages.java
@@ -1231,6 +1231,16 @@
 
 
 
+  /**
+   * The message ID for the string representation of the result code that will
+   * be used for operations that failed because the operation lookthrough
+   *  limit was exceeded.
+   */
+  public static final int MSGID_JEB_LOOKTHROUGH_LIMIT_EXCEEDED =
+       CATEGORY_MASK_CORE | SEVERITY_MASK_INFORMATIONAL | 127;
+
+
+
 
   /**
    * Associates a set of generic messages with the message IDs defined in this
@@ -1721,5 +1731,8 @@
                     "Entry record with ID %s is not compatible with this " +
                     "version of the backend database. " +
                     "Entry version: %x");
+    registerMessage(MSGID_JEB_LOOKTHROUGH_LIMIT_EXCEEDED,
+                    "This search operation has checked the maximum of %d " +
+                    "entries for matches.");
   }
 }

--
Gitblit v1.10.0