LUCENE-2497: fix a bug that was introduced in LUCENE-2480

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@953986 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Shai Erera 2010-06-12 10:47:35 +00:00
parent 51f649e353
commit 1cf9b74a22
1 changed files with 2 additions and 1 deletions

View File

@ -154,7 +154,8 @@ public final class SegmentInfo {
}
if (format > SegmentInfos.FORMAT_4_0) {
// pre-4.0 indexes write a byte if there is a single norms file
assert 1 == input.readByte();
byte b = input.readByte();
assert 1 == b;
}
int numNormGen = input.readInt();
if (numNormGen == NO) {