mirror of
https://github.com/apache/activemq.git
synced 2025-02-09 11:35:36 +00:00
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
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@903330 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
def2a34915
commit
4b49834ef6
@ -246,7 +246,7 @@ class DataFileAppender {
|
||||
}
|
||||
|
||||
nextWriteBatch = new WriteBatch(file, file.getLength(), write);
|
||||
enqueueMutex.notify();
|
||||
enqueueMutex.notifyAll();
|
||||
break;
|
||||
} else {
|
||||
// Append to current batch if possible..
|
||||
@ -327,7 +327,7 @@ class DataFileAppender {
|
||||
}
|
||||
enqueueMutex.wait();
|
||||
}
|
||||
enqueueMutex.notify();
|
||||
enqueueMutex.notifyAll();
|
||||
}
|
||||
|
||||
wb = (WriteBatch)o;
|
||||
|
Loading…
x
Reference in New Issue
Block a user