ARTEMIS-937 no sync on AIO shouldn't use O_DIRECT

This commit is contained in:
Clebert Suconic 2017-02-03 11:39:32 -05:00
parent 1ac6354990
commit c60c92697f
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ public class AIOSequentialFile extends AbstractSequentialFile {
opened = true;
try {
aioFile = aioFactory.libaioContext.openFile(getFile(), true);
aioFile = aioFactory.libaioContext.openFile(getFile(), factory.isDatasync());
} catch (IOException e) {
factory.onIOError(e, e.getMessage(), this);
throw new ActiveMQNativeIOError(e.getMessage(), e);