diff options
Diffstat (limited to 'src/mongo/db/commands/end_sessions_command.cpp')
-rw-r--r-- | src/mongo/db/commands/end_sessions_command.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/mongo/db/commands/end_sessions_command.cpp b/src/mongo/db/commands/end_sessions_command.cpp index 8f6bb1ded29..74fa70a0f66 100644 --- a/src/mongo/db/commands/end_sessions_command.cpp +++ b/src/mongo/db/commands/end_sessions_command.cpp @@ -59,12 +59,6 @@ public: Status checkAuthForOperation(OperationContext* opCtx, const std::string& dbname, const BSONObj& cmdObj) override { - - if (serverGlobalParams.featureCompatibility.getVersion() != - ServerGlobalParams::FeatureCompatibility::Version::kFullyUpgradedTo36) { - return SessionsCommandFCV34Status(getName()); - } - // It is always ok to run this command, as long as you are authenticated // as some user, if auth is enabled. AuthorizationSession* authSession = AuthorizationSession::get(opCtx->getClient()); @@ -81,13 +75,6 @@ public: const std::string& db, const BSONObj& cmdObj, BSONObjBuilder& result) override { - - if (serverGlobalParams.featureCompatibility.getVersion() != - ServerGlobalParams::FeatureCompatibility::Version::kFullyUpgradedTo36) { - return CommandHelpers::appendCommandStatus(result, - SessionsCommandFCV34Status(getName())); - } - auto lsCache = LogicalSessionCache::get(opCtx); auto cmd = EndSessionsCmdFromClient::parse("EndSessionsCmdFromClient"_sd, cmdObj); |