mirror of https://github.com/apache/lucene.git
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:
parent
a02bffb253
commit
31407be62d
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue