mirror of https://github.com/apache/lucene.git
LUCENE-4055: more nocommits gone...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene4055@1342023 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
efefcc832b
commit
ec7f611f59
|
@ -1528,13 +1528,6 @@ public class TestIndexWriter extends LuceneTestCase {
|
||||||
for (IndexReader r : r0.getSequentialSubReaders()) {
|
for (IndexReader r : r0.getSequentialSubReaders()) {
|
||||||
SegmentInfoPerCommit s = ((SegmentReader) r).getSegmentInfo();
|
SegmentInfoPerCommit s = ((SegmentReader) r).getSegmentInfo();
|
||||||
assertFalse(((SegmentReader) r).getFieldInfos().hasVectors());
|
assertFalse(((SegmentReader) r).getFieldInfos().hasVectors());
|
||||||
// nocommit
|
|
||||||
/*
|
|
||||||
Set<String> files = new HashSet<String>();
|
|
||||||
s.getCodec().termVectorsFormat().files(s, files);
|
|
||||||
List<String> filesExisting = SegmentInfo.findMatchingFiles(s.name, dir, files);
|
|
||||||
assertTrue(filesExisting.isEmpty());
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
r0.close();
|
r0.close();
|
||||||
|
|
|
@ -149,7 +149,6 @@ public class IndexSplitter {
|
||||||
info.getDocStoreSegment(), info.getDocStoreIsCompoundFile(), info.getNormGen(), info.getUseCompoundFile(),
|
info.getDocStoreSegment(), info.getDocStoreIsCompoundFile(), info.getNormGen(), info.getUseCompoundFile(),
|
||||||
info.getCodec(), info.getDiagnostics(), info.attributes());
|
info.getCodec(), info.getDiagnostics(), info.attributes());
|
||||||
destInfos.add(new SegmentInfoPerCommit(newInfo, infoPerCommit.getDelCount(), infoPerCommit.getDelGen()));
|
destInfos.add(new SegmentInfoPerCommit(newInfo, infoPerCommit.getDelCount(), infoPerCommit.getDelGen()));
|
||||||
// nocommit is this right...?
|
|
||||||
// now copy files over
|
// now copy files over
|
||||||
Collection<String> files = infoPerCommit.files();
|
Collection<String> files = infoPerCommit.files();
|
||||||
for (final String srcName : files) {
|
for (final String srcName : files) {
|
||||||
|
|
Loading…
Reference in New Issue