activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject svn commit: r903330 - /activemq/trunk/kahadb/src/main/java/org/apache/kahadb/journal/DataFileAppender.java
Date Tue, 26 Jan 2010 17:29:01 GMT
Author: gtully
Date: Tue Jan 26 17:29:00 2010
New Revision: 903330

URL: http://svn.apache.org/viewvc?rev=903330&view=rev
Log:
hang on linux seems to point to the possibilit of more than one thread waiting on the enque
mutex so this change to notifyAll should help

Modified:
    activemq/trunk/kahadb/src/main/java/org/apache/kahadb/journal/DataFileAppender.java

Modified: activemq/trunk/kahadb/src/main/java/org/apache/kahadb/journal/DataFileAppender.java
URL: http://svn.apache.org/viewvc/activemq/trunk/kahadb/src/main/java/org/apache/kahadb/journal/DataFileAppender.java?rev=903330&r1=903329&r2=903330&view=diff
==============================================================================
--- activemq/trunk/kahadb/src/main/java/org/apache/kahadb/journal/DataFileAppender.java (original)
+++ activemq/trunk/kahadb/src/main/java/org/apache/kahadb/journal/DataFileAppender.java Tue
Jan 26 17:29:00 2010
@@ -246,7 +246,7 @@
 	            	}
 	            	
 	                nextWriteBatch = new WriteBatch(file, file.getLength(), write);
-	                enqueueMutex.notify();
+	                enqueueMutex.notifyAll();
 	                break;
 	            } else {
 	                // Append to current batch if possible..
@@ -327,7 +327,7 @@
                         }
                         enqueueMutex.wait();
                     }
-                    enqueueMutex.notify();
+                    enqueueMutex.notifyAll();
                 }
 
                 wb = (WriteBatch)o;



Mime
View raw message