Author: jmesnil
Date: 2009-12-02 03:59:02 -0500 (Wed, 02 Dec 2009)
New Revision: 8490
Modified:
trunk/src/main/org/hornetq/core/persistence/impl/journal/JournalStorageManager.java
Log:
Journal type selection
* fallback to NIO if ASYNCIO has been configured but libaio is not installed
Modified:
trunk/src/main/org/hornetq/core/persistence/impl/journal/JournalStorageManager.java
===================================================================
---
trunk/src/main/org/hornetq/core/persistence/impl/journal/JournalStorageManager.java 2009-12-02
05:04:05 UTC (rev 8489)
+++
trunk/src/main/org/hornetq/core/persistence/impl/journal/JournalStorageManager.java 2009-12-02
08:59:02 UTC (rev 8490)
@@ -248,7 +248,7 @@
config.getJournalBufferTimeout_AIO(),
config.isLogJournalWriteRate());
}
- else if (config.getJournalType() == JournalType.NIO)
+ else if (journalTypeToUse == JournalType.NIO)
{
log.info("Using NIO Journal");
journalFF = new NIOSequentialFileFactory(journalDir,