summaryrefslogtreecommitdiff
path: root/jstests/dur
diff options
context:
space:
mode:
authorDan Pasette <dan@10gen.com>2015-09-16 19:52:06 -0400
committerDan Pasette <dan@mongodb.com>2015-09-22 12:23:43 -0400
commit895db3539016bc9c0bba76c2505c7878a1fbb9ff (patch)
tree6494cdb487b1bafebfd37a09bb6b4e48a8efd264 /jstests/dur
parent4119b212084ada7f544526f07cbf9352e7d5c910 (diff)
downloadmongo-895db3539016bc9c0bba76c2505c7878a1fbb9ff.tar.gz
SERVER-17425 Disallow creation of v0 indexes
Diffstat (limited to 'jstests/dur')
-rwxr-xr-xjstests/dur/dur1.js2
-rwxr-xr-xjstests/dur/dur1_tool.js2
-rwxr-xr-xjstests/dur/manyRestart.js2
3 files changed, 3 insertions, 3 deletions
diff --git a/jstests/dur/dur1.js b/jstests/dur/dur1.js
index 4668b4921e2..a4cf88cf22e 100755
--- a/jstests/dur/dur1.js
+++ b/jstests/dur/dur1.js
@@ -62,7 +62,7 @@ function work() {
d.a.update({ _id: 4 }, { $inc: { x: 1} });
// try building an index. however, be careful as object id's in system.indexes would vary, so we do it manually:
- d.system.indexes.insert({ _id: 99, ns: "test.a", key: { x: 1 }, name: "x_1", v: 0 });
+ d.system.indexes.insert({ _id: 99, ns: "test.a", key: { x: 1 }, name: "x_1" });
log("endwork");
return d;
diff --git a/jstests/dur/dur1_tool.js b/jstests/dur/dur1_tool.js
index f86e643b6f7..f0c2916012d 100755
--- a/jstests/dur/dur1_tool.js
+++ b/jstests/dur/dur1_tool.js
@@ -62,7 +62,7 @@ function work() {
d.a.update({ _id: 4 }, { $inc: { x: 1} });
// try building an index. however, be careful as object id's in system.indexes would vary, so we do it manually:
- d.system.indexes.insert({ _id: 99, ns: "test.a", key: { x: 1 }, name: "x_1", v: 0 });
+ d.system.indexes.insert({ _id: 99, ns: "test.a", key: { x: 1 }, name: "x_1" });
log("endwork");
return d;
}
diff --git a/jstests/dur/manyRestart.js b/jstests/dur/manyRestart.js
index d2e864a708b..fe48de9beec 100755
--- a/jstests/dur/manyRestart.js
+++ b/jstests/dur/manyRestart.js
@@ -62,7 +62,7 @@ function work() {
d.a.update({ _id: 4 }, { $inc: { x: 1} });
// try building an index. however, be careful as object id's in system.indexes would vary, so we do it manually:
- d.system.indexes.insert({ _id: 99, ns: "test.a", key: { x: 1 }, name: "x_1", v: 0 });
+ d.system.indexes.insert({ _id: 99, ns: "test.a", key: { x: 1 }, name: "x_1" });
log("endwork");
return d;
}