lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From markrmil...@apache.org
Subject svn commit: r887901 - in /lucene/java/branches/lucene_3_0/contrib/benchmark: CHANGES.txt src/java/org/apache/lucene/benchmark/byTask/tasks/ReadTask.java
Date Mon, 07 Dec 2009 12:24:15 GMT
Author: markrmiller
Date: Mon Dec  7 12:24:15 2009
New Revision: 887901

URL: http://svn.apache.org/viewvc?rev=887901&view=rev
Log:
LUCENE-2106: ReadTask does not close its Reader when OpenReader/CloseReader are not used.

Modified:
    lucene/java/branches/lucene_3_0/contrib/benchmark/CHANGES.txt
    lucene/java/branches/lucene_3_0/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/ReadTask.java

Modified: lucene/java/branches/lucene_3_0/contrib/benchmark/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/java/branches/lucene_3_0/contrib/benchmark/CHANGES.txt?rev=887901&r1=887900&r2=887901&view=diff
==============================================================================
--- lucene/java/branches/lucene_3_0/contrib/benchmark/CHANGES.txt (original)
+++ lucene/java/branches/lucene_3_0/contrib/benchmark/CHANGES.txt Mon Dec  7 12:24:15 2009
@@ -4,6 +4,10 @@
 
 $Id:$
 
+12/07/2009
+  LUCENE-2106: ReadTask does not close its Reader when 
+  OpenReader/CloseReader are not used. (Mark Miller)
+
 11/13/2009
   LUCENE-2050: Added ability to run tasks within a serial sequence in
   the background, by appending "&".  The tasks are stopped & joined at

Modified: lucene/java/branches/lucene_3_0/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/ReadTask.java
URL: http://svn.apache.org/viewvc/lucene/java/branches/lucene_3_0/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/ReadTask.java?rev=887901&r1=887900&r2=887901&view=diff
==============================================================================
--- lucene/java/branches/lucene_3_0/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/ReadTask.java
(original)
+++ lucene/java/branches/lucene_3_0/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/ReadTask.java
Mon Dec  7 12:24:15 2009
@@ -169,6 +169,7 @@
 
     if (closeSearcher) {
       searcher.close();
+      reader.close();
     } else {
       // Release our +1 ref from above
       reader.decRef();



Mime
View raw message