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:
Michael McCandless 2013-06-06 16:31:19 +00:00
parent d36076c1cd
commit 567ad03fa6
1 changed files with 3 additions and 3 deletions

View File

@ -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, ":");