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:
Doug Cutting 2002-02-10 22:59:12 +00:00
parent 4932518f4c
commit 55ce2ae185
1 changed files with 1 additions and 1 deletions

View File

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