From 17f49ab8b16a6f45371771d8c152cfbf4ed186af Mon Sep 17 00:00:00 2001 From: Mihai Andrei Date: Thu, 30 Jun 2022 20:38:44 +0000 Subject: SERVER-50301 Delete code which handles $v:1 update oplog entries --- jstests/noPassthrough/server_write_concern_metrics.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'jstests/noPassthrough/server_write_concern_metrics.js') diff --git a/jstests/noPassthrough/server_write_concern_metrics.js b/jstests/noPassthrough/server_write_concern_metrics.js index 61b18ff1b1f..c0b646d7b0d 100644 --- a/jstests/noPassthrough/server_write_concern_metrics.js +++ b/jstests/noPassthrough/server_write_concern_metrics.js @@ -292,11 +292,13 @@ for (const isPSASet of [true, false]) { // application, as testWriteConcernMetrics will run them multiple times. testWriteConcernMetrics( {applyOps: [{op: "i", ns: testColl.getFullName(), o: {_id: 0}}]}, "insert", 1, isPSASet); - testWriteConcernMetrics( - {applyOps: [{op: "u", ns: testColl.getFullName(), o2: {_id: 0}, o: {$set: {a: 1}}}]}, - "update", - 1, - isPSASet); + testWriteConcernMetrics({ + applyOps: + [{op: "u", ns: testColl.getFullName(), o2: {_id: 0}, o: {$v: 2, diff: {u: {a: 1}}}}] + }, + "update", + 1, + isPSASet); testWriteConcernMetrics({applyOps: [{op: "d", ns: testColl.getFullName(), o: {_id: 0}}]}, "delete", 1, -- cgit v1.2.1