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:
Robert Muir 2012-02-22 14:39:32 +00:00
parent f9c34805d7
commit 44a976ff39
1 changed files with 1 additions and 0 deletions

View File

@ -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