lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r677555 - /lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/PerfRunData.java
Date Thu, 17 Jul 2008 10:50:25 GMT
Author: mikemccand
Date: Thu Jul 17 03:50:24 2008
New Revision: 677555

URL: http://svn.apache.org/viewvc?rev=677555&view=rev
Log:
add missing synchronized to PerfRunData.getQueryMaker()

Modified:
    lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/PerfRunData.java

Modified: lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/PerfRunData.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/PerfRunData.java?rev=677555&r1=677554&r2=677555&view=diff
==============================================================================
--- lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/PerfRunData.java
(original)
+++ lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/PerfRunData.java
Thu Jul 17 03:50:24 2008
@@ -240,7 +240,7 @@
   /**
    * @return Returns the queryMaker by read task type (class)
    */
-  public QueryMaker getQueryMaker(ReadTask readTask) {
+  synchronized public QueryMaker getQueryMaker(ReadTask readTask) {
     // mapping the query maker by task class allows extending/adding new search/read tasks
     // without needing to modify this class.
     Class readTaskClass = readTask.getClass();



Mime
View raw message