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
This commit is contained in:
Robert Muir 2013-01-27 20:12:03 +00:00
parent a02bffb253
commit 31407be62d
1 changed files with 3 additions and 3 deletions

View File

@ -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;
}