summaryrefslogtreecommitdiff
path: root/src/mongo/db/session_catalog_test.cpp
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/session_catalog_test.cpp
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/session_catalog_test.cpp')
-rw-r--r--src/mongo/db/session_catalog_test.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/mongo/db/session_catalog_test.cpp b/src/mongo/db/session_catalog_test.cpp
index af421398ebd..62a974b308d 100644
--- a/src/mongo/db/session_catalog_test.cpp
+++ b/src/mongo/db/session_catalog_test.cpp
@@ -44,12 +44,6 @@ namespace {
class SessionCatalogTest : public ServiceContextMongoDTest {
protected:
- void setUp() final {
- ServiceContextMongoDTest::setUp();
-
- catalog()->reset_forTest();
- }
-
SessionCatalog* catalog() {
return SessionCatalog::get(getServiceContext());
}