From da74bce05533353a39a7540dc7a724867ae5cb04 Mon Sep 17 00:00:00 2001 From: Allison Easton Date: Thu, 11 May 2023 07:33:11 +0000 Subject: SERVER-76984 Remove check for !_isInternalClient() in service entry point --- src/mongo/db/service_entry_point_common.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/mongo/db') diff --git a/src/mongo/db/service_entry_point_common.cpp b/src/mongo/db/service_entry_point_common.cpp index 45609430298..05cb0f17155 100644 --- a/src/mongo/db/service_entry_point_common.cpp +++ b/src/mongo/db/service_entry_point_common.cpp @@ -1729,8 +1729,7 @@ void ExecCommandDatabase::_initiateCommand() { // Check that the client has the directShardOperations role if this is a direct operation to a // shard. - if (command->requiresAuth() && !_isInternalClient() && - serverGlobalParams.featureCompatibility.isVersionInitialized() && + if (command->requiresAuth() && serverGlobalParams.featureCompatibility.isVersionInitialized() && feature_flags::gCheckForDirectShardOperations.isEnabled( serverGlobalParams.featureCompatibility)) { bool clusterHasTwoOrMoreShards = [&]() { -- cgit v1.2.1