mirror of https://github.com/apache/lucene.git
LUCENE-5041: fix wasted work in CheckIndex
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1490339 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d36076c1cd
commit
567ad03fa6
|
@ -463,11 +463,11 @@ public class CheckIndex {
|
|||
|
||||
if (onlySegments != null) {
|
||||
result.partial = true;
|
||||
if (infoStream != null)
|
||||
if (infoStream != null) {
|
||||
infoStream.print("\nChecking only these segments:");
|
||||
for (String s : onlySegments) {
|
||||
if (infoStream != null)
|
||||
for (String s : onlySegments) {
|
||||
infoStream.print(" " + s);
|
||||
}
|
||||
}
|
||||
result.segmentsChecked.addAll(onlySegments);
|
||||
msg(infoStream, ":");
|
||||
|
|
Loading…
Reference in New Issue