You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by gt...@apache.org on 2010/01/26 18:29:01 UTC
svn commit: r903330 -
/activemq/trunk/kahadb/src/main/java/org/apache/kahadb/journal/DataFileAppender.java
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;