ARTEMIS-937 no sync on AIO shouldn't use O_DIRECT
(cherry picked from commit c60c92697f
)
This commit is contained in:
parent
9321ade39b
commit
83b00d6a8e
|
@ -130,7 +130,7 @@ public class AIOSequentialFile extends AbstractSequentialFile {
|
||||||
opened = true;
|
opened = true;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
aioFile = aioFactory.libaioContext.openFile(getFile(), true);
|
aioFile = aioFactory.libaioContext.openFile(getFile(), factory.isDatasync());
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
factory.onIOError(e, e.getMessage(), this);
|
factory.onIOError(e, e.getMessage(), this);
|
||||||
throw new ActiveMQNativeIOError(e.getMessage(), e);
|
throw new ActiveMQNativeIOError(e.getMessage(), e);
|
||||||
|
|
Loading…
Reference in New Issue