lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From markrmil...@apache.org
Subject svn commit: r887899 - in /lucene/java/trunk/contrib/benchmark: CHANGES.txt src/java/org/apache/lucene/benchmark/byTask/tasks/ReadTask.java
Date Mon, 07 Dec 2009 12:17:55 GMT
Author: markrmiller
Date: Mon Dec  7 12:17:54 2009
New Revision: 887899

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

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

Modified: lucene/java/trunk/contrib/benchmark/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/benchmark/CHANGES.txt?rev=887899&r1=887898&r2=887899&view=diff
==============================================================================
--- lucene/java/trunk/contrib/benchmark/CHANGES.txt (original)
+++ lucene/java/trunk/contrib/benchmark/CHANGES.txt Mon Dec  7 12:17:54 2009
@@ -3,6 +3,11 @@
 The Benchmark contrib package contains code for benchmarking Lucene in a variety of ways.
 
 $Id:$
+
+12/07/2009
+  LUCENE-2106: ReadTask does not close its Reader when 
+  OpenReader/CloseReader are not used. (Mark Miller)
+
 11/17/2009
   LUCENE-2079: Allow specifying delta thread priority after the "&";
   added log.time.step.msec to print per-time-period counts; fixed

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



Mime
View raw message