From 1f5a62034422d30dae44ec130539d2251bf88da5 Mon Sep 17 00:00:00 2001
From: abobrov <abobrov@localhost>
Date: Thu, 18 Oct 2007 16:20:35 +0000
Subject: [PATCH] - [Issue 2469] index-entry-limit doesn't work, at least for on-line import: provide new inc public method to increment entryLimitExceededCount from outside the Index and make index merge thread keep the count up to date. this has been verified with online and offline imports as well as with verify- index tool to yield the same results.
---
opendj-sdk/opends/src/server/org/opends/server/backends/jeb/Index.java | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/opendj-sdk/opends/src/server/org/opends/server/backends/jeb/Index.java b/opendj-sdk/opends/src/server/org/opends/server/backends/jeb/Index.java
index c860c7c..8e8fe1c 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/backends/jeb/Index.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/backends/jeb/Index.java
@@ -590,6 +590,15 @@
}
/**
+ * Increment the count of the number of keys that have exceeded the entry
+ * limit since this object was created.
+ */
+ public void incEntryLimitExceededCount()
+ {
+ entryLimitExceededCount++;
+ }
+
+ /**
* Update the index for a new entry.
*
* @param txn A database transaction, or null if none is required.
--
Gitblit v1.10.0