mirror of https://github.com/apache/activemq.git
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…
Reference in New Issue