summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough
diff options
context:
space:
mode:
authorAmirsaman Memaripour <amirsaman.memaripour@mongodb.com>2020-03-03 11:46:16 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-03-11 23:37:39 +0000
commit270bd8cb3def190b7a46b02a65cbbedacbed7a9c (patch)
tree24fe0200dbd1ec5a2af498c983618fe519e66c43 /jstests/noPassthrough
parent60e254b6c1dded61f4688543f14b3d5b6ff7d268 (diff)
downloadmongo-270bd8cb3def190b7a46b02a65cbbedacbed7a9c.tar.gz
SERVER-46533 Persist underlying BSON in CmdUpdate invocation
Diffstat (limited to 'jstests/noPassthrough')
-rw-r--r--jstests/noPassthrough/mirror_reads.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/jstests/noPassthrough/mirror_reads.js b/jstests/noPassthrough/mirror_reads.js
index 03d6772ddad..da65b8e19ef 100644
--- a/jstests/noPassthrough/mirror_reads.js
+++ b/jstests/noPassthrough/mirror_reads.js
@@ -119,6 +119,10 @@ function verifyMirrorReads(rst, cmd) {
jsTestLog("Verifying mirrored reads for 'findAndModify' commands");
verifyMirrorReads(rst, {findAndModify: kCollName, query: {}, update: {'$inc': {x: 1}}});
+ jsTestLog("Verifying mirrored reads for 'update' commands");
+ verifyMirrorReads(
+ rst, {update: kCollName, updates: [{q: {_id: 1}, u: {'$inc': {x: 1}}}], ordered: false});
+
rst.stopSet();
}
})();