summaryrefslogtreecommitdiff
path: root/src/mongo/shell/session.js
diff options
context:
space:
mode:
authorYoonsoo Kim <yoonsoo.kim@mongodb.com>2021-06-28 07:00:07 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-06-30 23:41:39 +0000
commit0d37de1e3f89c6257f2cd66f9bf530cc80859717 (patch)
tree591d2c96007d9e7eb04a1ad06086ad804fadc477 /src/mongo/shell/session.js
parentd635f733ad873fd469cf3e35e27452c45f1597c9 (diff)
downloadmongo-0d37de1e3f89c6257f2cd66f9bf530cc80859717.tar.gz
SERVER-58103 Remove test cases which test legacy op behaviors
Diffstat (limited to 'src/mongo/shell/session.js')
-rw-r--r--src/mongo/shell/session.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/mongo/shell/session.js b/src/mongo/shell/session.js
index 8fc0e98f617..44d82762dfb 100644
--- a/src/mongo/shell/session.js
+++ b/src/mongo/shell/session.js
@@ -257,11 +257,8 @@ var {
if (serverSupports(kWireVersionSupportingLogicalSession) &&
// Always attach sessionId from explicit sessions.
(driverSession._isExplicit ||
- // Check that implicit sessions are not disabled. The client must be using read
- // commands because aggregations always use runCommand() to establish cursors but
- // may use OP_GET_MORE (and therefore not have a session id attached) to retrieve
- // subsequent batches.
- (!jsTest.options().disableImplicitSessions && client.useReadCommands()))) {
+ // Check that implicit sessions are not disabled.
+ !jsTest.options().disableImplicitSessions)) {
cmdObj = driverSession._serverSession.injectSessionId(cmdObj);
}