From a465378dd21226dd26665300c5aadb1eedef5caa Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Wed, 11 Mar 2015 13:37:19 +0000
Subject: [PATCH] OPENDJ-1708 Persistit: no rebuild-index support
---
opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/EntryIDSet.java | 36 +++++++++++++-----------------------
1 files changed, 13 insertions(+), 23 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/EntryIDSet.java b/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/EntryIDSet.java
index 4070123..9c7d64d 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/EntryIDSet.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/EntryIDSet.java
@@ -267,37 +267,27 @@
/**
* Convert to a short string to aid with debugging.
*
- * @param buffer The string is appended to this string builder.
+ * @param sb The string is appended to this string builder.
*/
- void toString(StringBuilder buffer)
+ void toString(StringBuilder sb)
{
- if (!isDefined())
+ if (isDefined())
{
- if (key != null)
+ sb.append("[COUNT:").append(size()).append("]");
+ }
+ else if (key != null)
+ {
+ // The index entry limit was exceeded
+ sb.append("[LIMIT-EXCEEDED");
+ if (undefinedSize == Long.MAX_VALUE)
{
- // The index entry limit was exceeded
- if(undefinedSize == Long.MAX_VALUE)
- {
- buffer.append("[LIMIT-EXCEEDED]");
- }
- else
- {
- buffer.append("[LIMIT-EXCEEDED:");
- buffer.append(undefinedSize);
- buffer.append("]");
- }
+ sb.append(":").append(undefinedSize);
}
- else
- {
- // Not indexed
- buffer.append("[NOT-INDEXED]");
- }
+ sb.append("]");
}
else
{
- buffer.append("[COUNT:");
- buffer.append(size());
- buffer.append("]");
+ sb.append("[NOT-INDEXED]");
}
}
--
Gitblit v1.10.0