diff options
author | Allison Easton <allison.easton@mongodb.com> | 2023-05-11 07:33:11 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-05-11 08:34:41 +0000 |
commit | da74bce05533353a39a7540dc7a724867ae5cb04 (patch) | |
tree | 778c1aaabbc35c7bf720e960e17ee79f38f0e37e /src/mongo/db | |
parent | 515c5d6a658810648275079c038365c47d21bbb1 (diff) | |
download | mongo-da74bce05533353a39a7540dc7a724867ae5cb04.tar.gz |
SERVER-76984 Remove check for !_isInternalClient() in service entry point
Diffstat (limited to 'src/mongo/db')
-rw-r--r-- | src/mongo/db/service_entry_point_common.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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 = [&]() { |