diff options
author | Kyle Suarez <kyle.suarez@mongodb.com> | 2018-05-25 15:24:17 -0400 |
---|---|---|
committer | Kyle Suarez <kyle.suarez@mongodb.com> | 2018-05-30 09:45:28 -0400 |
commit | 190fc58164d3076e1c3a72b7dcca8748dbe40d1f (patch) | |
tree | 5ad560c8a3f04618e455620dcf3ceae7d0811cd5 /jstests/noPassthrough/readConcern_snapshot.js | |
parent | 774af67d1d2115d9a89a45643b42e931bec9aa82 (diff) | |
download | mongo-190fc58164d3076e1c3a72b7dcca8748dbe40d1f.tar.gz |
SERVER-28524 remove group command
Users should use the aggregation $group stage instead.
Diffstat (limited to 'jstests/noPassthrough/readConcern_snapshot.js')
-rw-r--r-- | jstests/noPassthrough/readConcern_snapshot.js | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/jstests/noPassthrough/readConcern_snapshot.js b/jstests/noPassthrough/readConcern_snapshot.js index 20e0aaa2bd9..023eca5873f 100644 --- a/jstests/noPassthrough/readConcern_snapshot.js +++ b/jstests/noPassthrough/readConcern_snapshot.js @@ -150,24 +150,14 @@ // TODO: SERVER-34113 Remove this test when we completely remove snapshot // reads since this command is not supported with transaction api. - // readConcern 'snapshot' is supported by group. + // readConcern 'snapshot' is supported by geoNear. session = rst.getPrimary().getDB(dbName).getMongo().startSession({causalConsistency: false}); sessionDb = session.getDatabase(dbName); - let txnNumber = 0; - assert.commandWorked(sessionDb.runCommand({ - group: {ns: collName, key: {_id: 1}, $reduce: function(curr, result) {}, initial: {}}, - readConcern: {level: "snapshot"}, - txnNumber: NumberLong(txnNumber++) - })); - - // TODO: SERVER-34113 Remove this test when we completely remove snapshot - // reads since this command is not supported with transaction api. - // readConcern 'snapshot' is supported by geoNear. assert.commandWorked(sessionDb.runCommand({ geoNear: collName, near: [0, 0], readConcern: {level: "snapshot"}, - txnNumber: NumberLong(txnNumber++) + txnNumber: NumberLong(0), })); session.endSession(); |