mirror of https://github.com/apache/lucene.git
LUCENE-2631: avoid redundant checks/sets of readerGen
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1035420 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0123357efa
commit
401ae6a621
|
@ -1129,13 +1129,11 @@ public abstract class FieldComparator {
|
|||
bottomOrd = index;
|
||||
// exact value match
|
||||
bottomSameReader = true;
|
||||
readerGen[bottomSlot] = currentReaderGen;
|
||||
}
|
||||
ords[bottomSlot] = bottomOrd;
|
||||
}
|
||||
}
|
||||
if (bottomSameReader) {
|
||||
readerGen[bottomSlot] = currentReaderGen;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -189,13 +189,11 @@ class TermOrdValComparator_SML extends FieldComparator {
|
|||
bottomOrd = index;
|
||||
// exact value match
|
||||
bottomSameReader = true;
|
||||
readerGen[bottomSlot] = currentReaderGen;
|
||||
}
|
||||
ords[bottomSlot] = bottomOrd;
|
||||
}
|
||||
}
|
||||
if (bottomSameReader) {
|
||||
readerGen[bottomSlot] = currentReaderGen;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue