lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gol...@apache.org
Subject cvs commit: jakarta-lucene/src/java/org/apache/lucene/index SegmentsReader.java
Date Fri, 31 Oct 2003 09:46:54 GMT
goller      2003/10/31 01:46:54

  Modified:    src/java/org/apache/lucene/index SegmentsReader.java
  Log:
  After undeleteAll the reader does not have deletions any
  longer. So hasDeletions has to become false.
  
  Revision  Changes    Path
  1.15      +2 -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.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- SegmentsReader.java	21 Oct 2003 18:24:23 -0000	1.14
  +++ SegmentsReader.java	31 Oct 2003 09:46:54 -0000	1.15
  @@ -128,6 +128,7 @@
     public void undeleteAll() throws IOException {
       for (int i = 0; i < readers.length; i++)
         readers[i].undeleteAll();
  +    hasDeletions = false;
     }
   
     private final int readerIndex(int n) {	  // find reader for doc n:
  
  
  

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


Mime
View raw message