mirror of https://github.com/apache/lucene.git
LUCENE-3818: add assertion
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1292319 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f9c34805d7
commit
44a976ff39
|
@ -577,6 +577,7 @@ public class IndexWriter implements Closeable, TwoPhaseCommit {
|
|||
|
||||
public synchronized void initWritableLiveDocs() throws IOException {
|
||||
assert Thread.holdsLock(IndexWriter.this);
|
||||
assert info.docCount > 0;
|
||||
//System.out.println("initWritableLivedocs seg=" + info + " liveDocs=" + liveDocs + " shared=" + shared);
|
||||
if (shared) {
|
||||
// Copy on write: this means we've cloned a
|
||||
|
|
Loading…
Reference in New Issue