mirror of
https://github.com/apache/lucene.git
synced 2025-02-28 21:39:25 +00:00
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:
parent
4f4ffb9589
commit
1be4db5d9e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user