summaryrefslogtreecommitdiff
path: root/src/mongo/db/service_context_test_fixture.h
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2018-11-15 06:41:30 -0500
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2018-11-19 10:02:52 -0500
commitc131f5903c8b4039d3fb2732142c987e296bd503 (patch)
tree6c388cf76254bbbde8e7e86a22bc5fb1ab0f3f43 /src/mongo/db/service_context_test_fixture.h
parent0d71197c9fa8a69203fbe0e81e85acb5766c9428 (diff)
downloadmongo-c131f5903c8b4039d3fb2732142c987e296bd503.tar.gz
SERVER-37245 Do not access the SessionCatalog directly if not necessary
The session catalog should not be accessed directly by majority of the consumers on mongod or mongos, instead they should interact with it through the decorations, which properly validate that the session has been assigned to the OperationContext.
Diffstat (limited to 'src/mongo/db/service_context_test_fixture.h')
-rw-r--r--src/mongo/db/service_context_test_fixture.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/db/service_context_test_fixture.h b/src/mongo/db/service_context_test_fixture.h
index a81962478fd..a538e7c89b3 100644
--- a/src/mongo/db/service_context_test_fixture.h
+++ b/src/mongo/db/service_context_test_fixture.h
@@ -67,6 +67,8 @@ public:
protected:
ServiceContextTest();
virtual ~ServiceContextTest() = default;
+
+private:
ThreadClient _threadClient;
};