summaryrefslogtreecommitdiff
path: root/jstests
diff options
context:
space:
mode:
Diffstat (limited to 'jstests')
-rw-r--r--jstests/disk/datafile_options.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/jstests/disk/datafile_options.js b/jstests/disk/datafile_options.js
index 62d4b137311..9bd8de40fd7 100644
--- a/jstests/disk/datafile_options.js
+++ b/jstests/disk/datafile_options.js
@@ -51,4 +51,23 @@ expectedResult = {
testGetCmdLineOptsMongod({ config : "jstests/libs/config_files/disable_noprealloc.ini" },
expectedResult);
+// Test that --syncdelay is an alias for both mmapv1 and wiredtiger options
+jsTest.log("Testing syncdelay command line option");
+var expectedResult = {
+ "parsed" : {
+ "storage" : {
+ "mmapv1" : {
+ "syncPeriodSecs" : 2
+ },
+ "wiredTiger" : {
+ "engineConfig" : {
+ "checkpointDelaySecs" : 2
+ }
+ }
+ }
+ }
+};
+testGetCmdLineOptsMongod({ syncdelay : 2 }, expectedResult);
+
+
print(baseName + " succeeded.");