mirror of https://github.com/apache/lucene.git
LUCENE-3661: bitvector->mutablebits in some strings/javadocs
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene3661@1233508 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e2a4b86260
commit
413823ceaf
|
@ -147,7 +147,7 @@ class BufferedDeletesStream {
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Resolves the buffered deleted Term/Query/docIDs, into
|
/** Resolves the buffered deleted Term/Query/docIDs, into
|
||||||
* actual deleted docIDs in the liveDocs BitVector for
|
* actual deleted docIDs in the liveDocs MutableBits for
|
||||||
* each SegmentReader. */
|
* each SegmentReader. */
|
||||||
public synchronized ApplyDeletesResult applyDeletes(IndexWriter.ReaderPool readerPool, List<SegmentInfo> infos) throws IOException {
|
public synchronized ApplyDeletesResult applyDeletes(IndexWriter.ReaderPool readerPool, List<SegmentInfo> infos) throws IOException {
|
||||||
final long t0 = System.currentTimeMillis();
|
final long t0 = System.currentTimeMillis();
|
||||||
|
|
|
@ -633,7 +633,7 @@ public class IndexWriter implements Closeable, TwoPhaseCommit {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
assert (info.docCount - liveDocs.count()) == info.getDelCount() + pendingDeleteCount:
|
assert (info.docCount - liveDocs.count()) == info.getDelCount() + pendingDeleteCount:
|
||||||
"delete count mismatch during commit: seg=" + info + " info.delCount=" + info.getDelCount() + " vs BitVector=" + (info.docCount-liveDocs.count() + " pendingDelCount=" + pendingDeleteCount);
|
"delete count mismatch during commit: seg=" + info + " info.delCount=" + info.getDelCount() + " vs MutableBits=" + (info.docCount-liveDocs.count() + " pendingDelCount=" + pendingDeleteCount);
|
||||||
info.setDelCount(info.getDelCount() + pendingDeleteCount);
|
info.setDelCount(info.getDelCount() + pendingDeleteCount);
|
||||||
pendingDeleteCount = 0;
|
pendingDeleteCount = 0;
|
||||||
return true;
|
return true;
|
||||||
|
@ -2206,7 +2206,7 @@ public class IndexWriter implements Closeable, TwoPhaseCommit {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Prepares the {@link SegmentInfo} for the new flushed segment and persists
|
* Prepares the {@link SegmentInfo} for the new flushed segment and persists
|
||||||
* the deleted documents {@link BitVector}. Use
|
* the deleted documents {@link MutableBits}. Use
|
||||||
* {@link #publishFlushedSegment(SegmentInfo, FrozenBufferedDeletes)} to
|
* {@link #publishFlushedSegment(SegmentInfo, FrozenBufferedDeletes)} to
|
||||||
* publish the returned {@link SegmentInfo} together with its segment private
|
* publish the returned {@link SegmentInfo} together with its segment private
|
||||||
* delete packet.
|
* delete packet.
|
||||||
|
|
Loading…
Reference in New Issue