From 31407be62da4641ce63836fca653922abd6205e8 Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Sun, 27 Jan 2013 20:12:03 +0000 Subject: [PATCH] stop the jenkins screaming: BytesRefArray.bytesUsed is NOT RIGHT git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene4547@1439165 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/lucene/index/BinaryDocValuesWriter.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lucene/core/src/java/org/apache/lucene/index/BinaryDocValuesWriter.java b/lucene/core/src/java/org/apache/lucene/index/BinaryDocValuesWriter.java index c7521894ddc..9664553e276 100644 --- a/lucene/core/src/java/org/apache/lucene/index/BinaryDocValuesWriter.java +++ b/lucene/core/src/java/org/apache/lucene/index/BinaryDocValuesWriter.java @@ -44,9 +44,9 @@ class BinaryDocValuesWriter extends DocValuesWriter { public BinaryDocValuesWriter(FieldInfo fieldInfo, Counter iwBytesUsed) { this.fieldInfo = fieldInfo; this.bytesRefArray = new BytesRefArray(iwBytesUsed); - bytesUsed = bytesRefArray.bytesUsed(); + bytesUsed = bytesRefArray.bytesUsed(); // nocommit: totally wrong!!!! this.iwBytesUsed = iwBytesUsed; - iwBytesUsed.addAndGet(bytesUsed); + //nocommit WRONG iwBytesUsed.addAndGet(bytesUsed); } public void addValue(int docID, BytesRef value) { @@ -72,7 +72,7 @@ class BinaryDocValuesWriter extends DocValuesWriter { private void updateBytesUsed() { final long newBytesUsed = bytesRefArray.bytesUsed(); - iwBytesUsed.addAndGet(newBytesUsed - bytesUsed); + // nocommit: WRONG iwBytesUsed.addAndGet(newBytesUsed - bytesUsed); bytesUsed = newBytesUsed; }