lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r778834 - /lucene/java/trunk/src/java/org/apache/lucene/index/CheckIndex.java
Date Tue, 26 May 2009 18:35:50 GMT
Author: mikemccand
Date: Tue May 26 18:35:50 2009
New Revision: 778834

URL: http://svn.apache.org/viewvc?rev=778834&view=rev
Log:
fix CheckIndex -fix to immediately abort if no segments file is present

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/index/CheckIndex.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/index/CheckIndex.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/index/CheckIndex.java?rev=778834&r1=778833&r2=778834&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/index/CheckIndex.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/index/CheckIndex.java Tue May 26 18:35:50
2009
@@ -713,6 +713,9 @@
     checker.setInfoStream(System.out);
 
     Status result = checker.checkIndex(onlySegments);
+    if (result.missingSegments) {
+      System.exit(1);
+    }
 
     if (!result.clean) {
       if (!doFix) {



Mime
View raw message