fix CheckIndex -fix to immediately abort if no segments file is present

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@778834 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2009-05-26 18:35:50 +00:00
parent d47c46f1a9
commit cb5d9c56ff
1 changed files with 3 additions and 0 deletions

View File

@ -713,6 +713,9 @@ public class CheckIndex {
checker.setInfoStream(System.out);
Status result = checker.checkIndex(onlySegments);
if (result.missingSegments) {
System.exit(1);
}
if (!result.clean) {
if (!doFix) {