lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From busc...@apache.org
Subject svn commit: r1058470 - /lucene/dev/branches/realtime_search/lucene/src/java/org/apache/lucene/index/DocumentsWriterPerThreadPool.java
Date Thu, 13 Jan 2011 09:22:59 GMT
Author: buschmi
Date: Thu Jan 13 09:22:58 2011
New Revision: 1058470

URL: http://svn.apache.org/viewvc?rev=1058470&view=rev
Log:
LUCENE-2324: make newThreadState synchronized

Modified:
    lucene/dev/branches/realtime_search/lucene/src/java/org/apache/lucene/index/DocumentsWriterPerThreadPool.java

Modified: lucene/dev/branches/realtime_search/lucene/src/java/org/apache/lucene/index/DocumentsWriterPerThreadPool.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/realtime_search/lucene/src/java/org/apache/lucene/index/DocumentsWriterPerThreadPool.java?rev=1058470&r1=1058469&r2=1058470&view=diff
==============================================================================
--- lucene/dev/branches/realtime_search/lucene/src/java/org/apache/lucene/index/DocumentsWriterPerThreadPool.java
(original)
+++ lucene/dev/branches/realtime_search/lucene/src/java/org/apache/lucene/index/DocumentsWriterPerThreadPool.java
Thu Jan 13 09:22:58 2011
@@ -34,7 +34,7 @@ public abstract class DocumentsWriterPer
     return perThreads.length;
   }
 
-  public ThreadState newThreadState() {
+  public synchronized ThreadState newThreadState() {
     if (numThreadStatesActive < perThreads.length) {
       ThreadState state = perThreads[numThreadStatesActive];
       numThreadStatesActive++;



Mime
View raw message