summaryrefslogtreecommitdiff
path: root/jstests/disk
diff options
context:
space:
mode:
authorEric Milkie <milkie@10gen.com>2014-12-15 17:09:03 -0500
committerEric Milkie <milkie@10gen.com>2014-12-17 18:22:24 -0500
commitd9a10c7f8bfd3f28b74bb1208188d1f1fb280c5f (patch)
tree425d51b81208d1d2bb0f25669b225d3b735363b3 /jstests/disk
parent8d90ce21ffb7fac21fd9f287ce3d66a4c6b576b8 (diff)
downloadmongo-d9a10c7f8bfd3f28b74bb1208188d1f1fb280c5f.tar.gz
SERVER-16313 whitelist of storage options for WiredTiger
Diffstat (limited to 'jstests/disk')
-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.");