LUCENE-4055: clean up some nocommits

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene4055@1341688 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2012-05-23 00:28:05 +00:00
parent 10eac8949f
commit 8824011aff
8 changed files with 10 additions and 12 deletions

View File

@ -51,7 +51,7 @@ public class SepDocValuesConsumer extends DocValuesWriterBase {
@Override
public void abort() {
// nocommit must we really delete the files...? IFD
// will do so I think?
// We don't have to remove files here: IndexFileDeleter
// will do so
}
}

View File

@ -123,8 +123,8 @@ public class SimpleTextNormsFormat extends NormsFormat {
@Override
public void abort() {
// nocommit must we really delete the files...? IFD
// will do so I think?
// We don't have to remove files here: IndexFileDeleter
// will do so
}
}
}

View File

@ -57,8 +57,8 @@ class SimpleTextPerDocConsumer extends PerDocConsumer {
@Override
public void abort() {
// nocommit must we really delete the files...? IFD
// will do so I think?
// We don't have to remove files here: IndexFileDeleter
// will do so
}
static String docValuesId(String segmentsName, int fieldId) {

View File

@ -25,8 +25,6 @@ import org.apache.lucene.codecs.SegmentInfoWriter;
import org.apache.lucene.index.IndexFileNames;
import org.apache.lucene.index.SegmentInfo;
// nocommit rename (remove s)
/**
* plain text segments file format.
* <p>

View File

@ -40,8 +40,6 @@ import org.apache.lucene.util.StringHelper;
import static org.apache.lucene.codecs.simpletext.SimpleTextSegmentInfoWriter.*;
// nocommit rename (remove s)
/**
* reads plaintext segments files
* <p>

View File

@ -35,8 +35,6 @@ import org.apache.lucene.store.IndexOutput;
import org.apache.lucene.util.BytesRef;
import org.apache.lucene.util.IOUtils;
// nocommit rename (remove s)
/**
* writes plaintext segments files
* <p>

View File

@ -485,6 +485,7 @@ class DocumentsWriterPerThread {
try {
consumer.flush(flushState);
pendingDeletes.terms.clear();
// nocommit use setter and make this a SetOnce:
segmentInfo.docCount = flushState.numDocs;
segmentInfo.setFiles(new HashSet<String>(directory.getCreatedFiles()));

View File

@ -2302,6 +2302,8 @@ public class IndexWriter implements Closeable, TwoPhaseCommit {
}
MergeState mergeState = merger.merge(); // merge 'em
// nocommit use setter and make this a SetOnce:
info.docCount = mergeState.mergedDocCount;
SegmentInfoPerCommit infoPerCommit = new SegmentInfoPerCommit(info, 0, -1L);
@ -3499,6 +3501,7 @@ public class IndexWriter implements Closeable, TwoPhaseCommit {
// This is where all the work happens:
MergeState mergeState = merger.merge();
// nocommit use setter and make this a SetOnce:
merge.info.info.docCount = mergeState.mergedDocCount;
merge.info.info.setFiles(new HashSet<String>(dirWrapper.getCreatedFiles()));