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

abobrov
18.20.2007 77199227c806834fa7339186781d2ebd977d4bce
- [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.
2 files modified
10 ■■■■■ changed files
opends/src/server/org/opends/server/backends/jeb/Index.java 9 ●●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/backends/jeb/IndexMergeThread.java 1 ●●●● patch | view | raw | blame | history
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.
opends/src/server/org/opends/server/backends/jeb/IndexMergeThread.java
@@ -304,6 +304,7 @@
            if (merged.size() > entryLimit)
            {
              index.incEntryLimitExceededCount();
              byte[] undefinedSizeBytes =
                  JebFormat.entryIDUndefinedSizeToDatabase(merged.size());
              dbData.setData(undefinedSizeBytes);