One more Thread.holdsLock(writer) assert...

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@830410 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Uwe Schindler 2009-10-28 00:16:48 +00:00
parent 4f4ffb9589
commit 1be4db5d9e

View File

@ -468,8 +468,7 @@ public class IndexWriter implements Closeable {
// not pooling readers, we release it:
readerMap.remove(sr.getSegmentInfo());
// TODO: java 5
// assert !sr.hasChanges || Thread.holdsLock(IndexWriter.this);
assert !sr.hasChanges || Thread.holdsLock(IndexWriter.this);
// Drop our ref -- this will commit any pending
// changes to the dir