summaryrefslogtreecommitdiff
path: root/src/mongo/executor/connection_pool.h
diff options
context:
space:
mode:
authorJason Carey <jcarey@argv.me>2019-04-03 13:42:14 -0400
committerJason Carey <jcarey@argv.me>2019-04-19 10:29:42 -0400
commit788a884caa1833fc77966d5f28de357db9aec36e (patch)
tree2960e7a66ea34baef4ad3c7b19ba21bf73e565f0 /src/mongo/executor/connection_pool.h
parent1bd8e7d577c4d10eb1efda793b5b6e213a6e66d5 (diff)
downloadmongo-788a884caa1833fc77966d5f28de357db9aec36e.tar.gz
SERVER-40464 skip auth option for connection pools
Add support for a new connection pool option which allows us to skip authentication, even if the server as a whole has auth on. This is to support special pools which don't need to auth
Diffstat (limited to 'src/mongo/executor/connection_pool.h')
-rw-r--r--src/mongo/executor/connection_pool.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/executor/connection_pool.h b/src/mongo/executor/connection_pool.h
index 7066177e438..f3bfb691ff5 100644
--- a/src/mongo/executor/connection_pool.h
+++ b/src/mongo/executor/connection_pool.h
@@ -132,6 +132,11 @@ public:
* The manager will hold this pool for the lifetime of the pool.
*/
EgressTagCloserManager* egressTagCloserManager = nullptr;
+
+ /**
+ * Connections created through this connection pool will not attempt to authenticate.
+ */
+ bool skipAuthentication = false;
};
explicit ConnectionPool(std::shared_ptr<DependentTypeFactoryInterface> impl,