You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by cp...@apache.org on 2015/12/03 17:52:34 UTC
svn commit: r1717804 -
/lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/index/CheckIndex.java
Author: cpoerschke
Date: Thu Dec 3 16:52:33 2015
New Revision: 1717804
URL: http://svn.apache.org/viewvc?rev=1717804&view=rev
Log:
LUCENE-6910: remove no-op code in CheckIndex.java (https://scan.coverity.com/projects/5620 CID 120040)
Modified:
lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/index/CheckIndex.java
Modified: lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/index/CheckIndex.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/index/CheckIndex.java?rev=1717804&r1=1717803&r2=1717804&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/index/CheckIndex.java (original)
+++ lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/index/CheckIndex.java Thu Dec 3 16:52:33 2015
@@ -567,7 +567,6 @@ public final class CheckIndex implements
}
String sFormat = "";
- boolean skip = false;
result.segmentsFileName = segmentsFileName;
result.numSegments = numSegments;
@@ -605,11 +604,6 @@ public final class CheckIndex implements
msg(infoStream, ":");
}
- if (skip) {
- msg(infoStream, "\nERROR: this index appears to be created by a newer version of Lucene than this tool was compiled on; please re-compile this tool on the matching version of Lucene; exiting");
- result.toolOutOfDate = true;
- return result;
- }
result.newSegments = sis.clone();