diff --git a/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/util/SyncCalculation.java b/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/util/SyncCalculation.java index 656327862e..a5e38d7f10 100644 --- a/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/util/SyncCalculation.java +++ b/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/util/SyncCalculation.java @@ -180,7 +180,7 @@ public class SyncCalculation { switch (journalType) { case NIO: - factory = new NIOSequentialFileFactory(datafolder, 1); + factory = new NIOSequentialFileFactory(datafolder, 1).setDatasync(datasync); factory.start(); return factory; case ASYNCIO: