From 0d37de1e3f89c6257f2cd66f9bf530cc80859717 Mon Sep 17 00:00:00 2001 From: Yoonsoo Kim Date: Mon, 28 Jun 2021 07:00:07 +0000 Subject: SERVER-58103 Remove test cases which test legacy op behaviors --- src/mongo/shell/session.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/mongo/shell/session.js') 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); } -- cgit v1.2.1