mirror of https://github.com/apache/lucene.git
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:
parent
d47c46f1a9
commit
cb5d9c56ff
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue