mirror of https://github.com/apache/lucene.git
Fix a locking bug when deleting from an unoptimized index.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149675 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4932518f4c
commit
55ce2ae185
|
@ -105,7 +105,7 @@ final class SegmentsReader extends IndexReader {
|
|||
synchronized final void doDelete(int n) throws IOException {
|
||||
numDocs = -1; // invalidate cache
|
||||
int i = readerIndex(n); // find segment num
|
||||
readers[i].delete(n - starts[i]); // dispatch to segment reader
|
||||
readers[i].doDelete(n - starts[i]); // dispatch to segment reader
|
||||
}
|
||||
|
||||
private final int readerIndex(int n) { // find reader for doc n:
|
||||
|
|
Loading…
Reference in New Issue