Skip to content

Apache Lucene open-source search software

LUCENE-5604: woops, remove diagnostic conflict counter

Michael McCandless6372c2870153
diff --git a/lucene/core/src/java/org/apache/lucene/util/BytesRefHash.java b/lucene/core/src/java/org/apache/lucene/util/BytesRefHash.java
index f8eb6550ba8..c3b44920bfb 100644
--- a/lucene/core/src/java/org/apache/lucene/util/BytesRefHash.java
+++ b/lucene/core/src/java/org/apache/lucene/util/BytesRefHash.java
@@ -341,8 +341,6 @@ public final class BytesRefHash {
return ids[findHash(bytes)];
}
- public static int totConflict;
-
private int findHash(BytesRef bytes) {
assert bytesStart != null : "bytesStart is null - not initialized";
@@ -355,7 +353,6 @@ public final class BytesRefHash {
// Conflict; use linear probe to find an open slot
// (see LUCENE-5604):
do {
- totConflict++;
code++;
hashPos = code & hashMask;
e = ids[hashPos];