lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cutt...@apache.org
Subject cvs commit: jakarta-lucene/src/java/org/apache/lucene/index SegmentsReader.java
Date Sun, 10 Feb 2002 22:59:12 GMT
cutting     02/02/10 14:59:12

  Modified:    src/java/org/apache/lucene/index SegmentsReader.java
  Log:
  Fix a locking bug when deleting from an unoptimized index.
  
  Revision  Changes    Path
  1.5       +1 -1      jakarta-lucene/src/java/org/apache/lucene/index/SegmentsReader.java
  
  Index: SegmentsReader.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/src/java/org/apache/lucene/index/SegmentsReader.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- SegmentsReader.java	8 Feb 2002 19:39:42 -0000	1.4
  +++ SegmentsReader.java	10 Feb 2002 22:59:12 -0000	1.5
  @@ -105,7 +105,7 @@
     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:
  
  
  

--
To unsubscribe, e-mail:   <mailto:lucene-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-dev-help@jakarta.apache.org>


Mime
View raw message