summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/read_majority.js
diff options
context:
space:
mode:
authorJason Carey <jcarey@argv.me>2017-09-29 12:18:53 -0400
committerJason Carey <jcarey@argv.me>2017-10-03 16:50:12 -0400
commitf23002e965d29158505575d09432faf403efcb56 (patch)
tree5794d12d94376b7cc55186862e4a43d850cab4d5 /jstests/noPassthrough/read_majority.js
parent8a4b356682d9a3d39049c2d51ac4f10ed1e6d07e (diff)
downloadmongo-f23002e965d29158505575d09432faf403efcb56.tar.gz
SERVER-30848 make shell getMores use sessions
The shell should attach the logical session used to initiate cursors (via find or aggregate) and use it for successive getMores.
Diffstat (limited to 'jstests/noPassthrough/read_majority.js')
-rw-r--r--jstests/noPassthrough/read_majority.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/noPassthrough/read_majority.js b/jstests/noPassthrough/read_majority.js
index 6959a91c89a..63c175530f5 100644
--- a/jstests/noPassthrough/read_majority.js
+++ b/jstests/noPassthrough/read_majority.js
@@ -37,14 +37,14 @@ load("jstests/libs/analyze_plan.js");
function getReadMajorityCursor() {
var res = t.runCommand('find', {batchSize: 2, readConcern: {level: "majority"}});
assert.commandWorked(res);
- return new DBCommandCursor(db.getMongo(), res, 2);
+ return new DBCommandCursor(db, res, 2);
}
function getReadMajorityAggCursor() {
var res = t.runCommand(
'aggregate', {pipeline: [], cursor: {batchSize: 2}, readConcern: {level: "majority"}});
assert.commandWorked(res);
- return new DBCommandCursor(db.getMongo(), res, 2);
+ return new DBCommandCursor(db, res, 2);
}
function getExplainPlan(query) {