summaryrefslogtreecommitdiff
path: root/jstests
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2018-09-25 13:07:19 -0400
committerBenety Goh <benety@mongodb.com>2018-09-25 13:07:19 -0400
commitbf2cfbd09d6695e2c84b295c3aa539adaf6496a8 (patch)
tree1d49db4f09206e217c9d3daee11782b36eb28701 /jstests
parent0e65a5855d5af2f08d8fcc330adfd7a3bb31a7b4 (diff)
downloadmongo-bf2cfbd09d6695e2c84b295c3aa539adaf6496a8.tar.gz
SERVER-36944 applyOps uses applyCommand_inlock() for system.indexes inserts
Diffstat (limited to 'jstests')
-rw-r--r--jstests/core/apply_ops_invalid_index_spec.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/jstests/core/apply_ops_invalid_index_spec.js b/jstests/core/apply_ops_invalid_index_spec.js
index d7568b0fa75..f08359c2403 100644
--- a/jstests/core/apply_ops_invalid_index_spec.js
+++ b/jstests/core/apply_ops_invalid_index_spec.js
@@ -78,12 +78,11 @@
// Inserting a v:1 index directly into system.indexes with an unknown field in the index spec
// should ignore the unrecognized field and create the index.
- assert.commandFailedWithCode(db.adminCommand({
+ assert.commandWorked(db.adminCommand({
applyOps: [{
op: 'i',
ns: systemIndexesNs,
o: {v: 1, key: {a: 1}, name: 'a_1_system_v1', ns: collNs, unknown: 1},
}],
- }),
- ErrorCodes.InvalidIndexSpecificationOption);
+ }));
})();