LUCENE-2380: align for both doc->ord and ord->value, when fasterButMoreRAM is true

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@951520 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2010-06-04 18:39:16 +00:00
parent 6ffc159b40
commit 39edb867b2
1 changed files with 1 additions and 1 deletions

View File

@ -735,7 +735,7 @@ class FieldCacheImpl implements FieldCache {
}
GrowableWriter termOrdToBytesOffset = new GrowableWriter(startBytesBPV, 1+startNumUniqueTerms, fasterButMoreRAM);
final GrowableWriter docToTermOrd = new GrowableWriter(startTermsBPV, reader.maxDoc(), false);
final GrowableWriter docToTermOrd = new GrowableWriter(startTermsBPV, reader.maxDoc(), fasterButMoreRAM);
// 0 is reserved for "unset"
bytes.copyUsingLengthPrefix(new BytesRef());