Files
mongo/jstests/core/write/update/updateb.js
Jason Zhang 28eb8d299b SERVER-80780 Merge writes without shard key jscore passthrough with existing passthrough suites (#20175)
GitOrigin-RevId: a54cc3a3df44359ea51533f062642ee841f71460
2024-04-08 02:28:42 +00:00

11 lines
267 B
JavaScript

// Cannot implicitly shard accessed collections because of following errmsg: A single
let t = db.updateb;
t.drop();
t.update({"x.y": 2}, {$inc: {a: 7}}, true);
let correct = {a: 7, x: {y: 2}};
let got = t.findOne();
delete got._id;
assert.docEq(correct, got, "A");