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/test/org/apache/lucene/index TestDoc.java
Date Wed, 11 Aug 2004 17:38:35 GMT
goller      2004/08/11 10:38:35

  Modified:    src/test/org/apache/lucene/index TestDoc.java
  Log:
  building of compound file taken out of commit lock
  
  Revision  Changes    Path
  1.7       +6 -3      jakarta-lucene/src/test/org/apache/lucene/index/TestDoc.java
  
  Index: TestDoc.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/src/test/org/apache/lucene/index/TestDoc.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- TestDoc.java	8 Aug 2004 13:05:33 -0000	1.6
  +++ TestDoc.java	11 Aug 2004 17:38:35 -0000	1.7
  @@ -188,8 +188,11 @@
         merger.merge();
         merger.closeReaders();
         
  -      if(useCompoundFile)
  -          merger.createCompoundFile();
  +      if (useCompoundFile) {
  +        Vector filesToDelete = merger.createCompoundFile(merged + ".cfs");
  +        for (Iterator iter = filesToDelete.iterator(); iter.hasNext();)
  +          directory.deleteFile((String) iter.next());
  +      }
   
         directory.close();
      }
  
  
  

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