activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clebertsuco...@apache.org
Subject [2/2] activemq-artemis git commit: ARTEMIS-937 no sync on AIO shouldn't use O_DIRECT
Date Fri, 03 Feb 2017 20:22:27 GMT
ARTEMIS-937 no sync on AIO shouldn't use O_DIRECT

(cherry picked from commit c60c92697f782209875f21fad8b4fdecc3fdcd12)


Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/83b00d6a
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/83b00d6a
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/83b00d6a

Branch: refs/heads/1.x
Commit: 83b00d6a8e61ce2683580aed1a67a37c26313ccb
Parents: 9321ade
Author: Clebert Suconic <clebertsuconic@apache.org>
Authored: Fri Feb 3 11:39:32 2017 -0500
Committer: Clebert Suconic <clebertsuconic@apache.org>
Committed: Fri Feb 3 15:22:17 2017 -0500

----------------------------------------------------------------------
 .../org/apache/activemq/artemis/core/io/aio/AIOSequentialFile.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/83b00d6a/artemis-journal/src/main/java/org/apache/activemq/artemis/core/io/aio/AIOSequentialFile.java
----------------------------------------------------------------------
diff --git a/artemis-journal/src/main/java/org/apache/activemq/artemis/core/io/aio/AIOSequentialFile.java
b/artemis-journal/src/main/java/org/apache/activemq/artemis/core/io/aio/AIOSequentialFile.java
index 21f5e0d..f641aec 100644
--- a/artemis-journal/src/main/java/org/apache/activemq/artemis/core/io/aio/AIOSequentialFile.java
+++ b/artemis-journal/src/main/java/org/apache/activemq/artemis/core/io/aio/AIOSequentialFile.java
@@ -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);


Mime
View raw message