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:
Yonik Seeley 2010-11-15 19:40:33 +00:00
parent 0123357efa
commit 401ae6a621
2 changed files with 2 additions and 6 deletions

View File

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

View File

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