summaryrefslogtreecommitdiff
path: root/jstests/tool
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2015-02-17 18:20:42 -0500
committerMathias Stearn <mathias@10gen.com>2015-02-19 19:55:44 -0500
commitae18bbec33db1c4bf57d328505474eb7bba517df (patch)
treed40f788493b48acc2d65e1c002ce4adf41e0313f /jstests/tool
parent30d9e17410a3dec85ca2a148c745a6b8f9a8ecd0 (diff)
downloadmongo-ae18bbec33db1c4bf57d328505474eb7bba517df.tar.gz
SERVER-17312 collmod command now handles parsing of all arguments
For the two currently supported engine-specific options, the collmod command will handle parsing the arguments and tell the CollectionCatalogEntry to update it's flags option. This removes the ability of storage engines to have custom options that can be changed after the collection is created. There were issues related to argument validation and replication of changes (including for initial sync). A correct solution will be designed as SERVER-17320.
Diffstat (limited to 'jstests/tool')
-rw-r--r--jstests/tool/dumprestoreWithNoOptions.js8
1 files changed, 1 insertions, 7 deletions
diff --git a/jstests/tool/dumprestoreWithNoOptions.js b/jstests/tool/dumprestoreWithNoOptions.js
index d9a4731b5c0..bfd6f4fa579 100644
--- a/jstests/tool/dumprestoreWithNoOptions.js
+++ b/jstests/tool/dumprestoreWithNoOptions.js
@@ -23,13 +23,7 @@ dbname2 = "NOT_"+dbname;
db.dropDatabase();
-// MMapV1 always sets newcollectionsusepowerof2sizes, WT does not
-defaultFlags = { "flags" : 1 }
-var ss = db.serverStatus();
-
-if (ss.storageEngine.name != "mmapv1") {
- defaultFlags = {};
-}
+var defaultFlags = {}
var options = { capped: true, size: 4096, autoIndexId: true };
db.createCollection('capped', options);