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 ae7a8ca389..02db655341 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 @@ -178,7 +178,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: