summaryrefslogtreecommitdiff
path: root/jstests/core/bypass_doc_validation.js
diff options
context:
space:
mode:
authorEric Milkie <milkie@10gen.com>2017-04-06 15:30:59 -0400
committerEric Milkie <milkie@10gen.com>2017-08-22 13:45:12 -0400
commit77dc6917428ffad4b9ff2d54d78fa9b225f78a4b (patch)
treefa2483cb4214fd6858db09ca80523751f65888f5 /jstests/core/bypass_doc_validation.js
parentb1a36aaa34f48df1573d76439419552282f18cbf (diff)
downloadmongo-77dc6917428ffad4b9ff2d54d78fa9b225f78a4b.tar.gz
SERVER-28620 Adorn all oplog writes with timestamps
These timestamps are now used to implement oplog visibility rules, in place of the current in-memory vector of uncommitted ops that the WiredTiger glue code currently uses. This change also introduces a TimestampedBSONObj class, which encapsulates a BSONObject with its associated write timestamp.
Diffstat (limited to 'jstests/core/bypass_doc_validation.js')
-rw-r--r--jstests/core/bypass_doc_validation.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/core/bypass_doc_validation.js b/jstests/core/bypass_doc_validation.js
index d9bca81ab6d..9730b613cb4 100644
--- a/jstests/core/bypass_doc_validation.js
+++ b/jstests/core/bypass_doc_validation.js
@@ -18,7 +18,7 @@
// Test applyOps with a simple insert if not on mongos.
if (!db.runCommand({isdbgrid: 1}).isdbgrid) {
- var op = [{ts: Timestamp(0, 0), h: 1, v: 2, op: 'i', ns: coll.getFullName(), o: {_id: 9}}];
+ var op = [{h: 1, v: 2, op: 'i', ns: coll.getFullName(), o: {_id: 9}}];
assert.commandFailedWithCode(
myDb.runCommand({applyOps: op, bypassDocumentValidation: false}),
ErrorCodes.DocumentValidationFailure);