mirror of https://github.com/apache/lucene.git
fix whitespace
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1196401 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9fd6d2a120
commit
9ca0aa9f80
|
@ -334,17 +334,17 @@ public final class Bytes {
|
|||
IndexInput indexIn = null;
|
||||
boolean success = false;
|
||||
try {
|
||||
dataIn = dir.openInput(IndexFileNames.segmentFileName(id, "",
|
||||
Writer.DATA_EXTENSION), context);
|
||||
version = CodecUtil.checkHeader(dataIn, codecName, maxVersion, maxVersion);
|
||||
if (doIndex) {
|
||||
indexIn = dir.openInput(IndexFileNames.segmentFileName(id, "",
|
||||
Writer.INDEX_EXTENSION), context);
|
||||
final int version2 = CodecUtil.checkHeader(indexIn, codecName,
|
||||
maxVersion, maxVersion);
|
||||
assert version == version2;
|
||||
}
|
||||
success = true;
|
||||
dataIn = dir.openInput(IndexFileNames.segmentFileName(id, "",
|
||||
Writer.DATA_EXTENSION), context);
|
||||
version = CodecUtil.checkHeader(dataIn, codecName, maxVersion, maxVersion);
|
||||
if (doIndex) {
|
||||
indexIn = dir.openInput(IndexFileNames.segmentFileName(id, "",
|
||||
Writer.INDEX_EXTENSION), context);
|
||||
final int version2 = CodecUtil.checkHeader(indexIn, codecName,
|
||||
maxVersion, maxVersion);
|
||||
assert version == version2;
|
||||
}
|
||||
success = true;
|
||||
} finally {
|
||||
if (!success) {
|
||||
IOUtils.closeWhileHandlingException(dataIn, indexIn);
|
||||
|
|
Loading…
Reference in New Issue