diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2020-01-20 10:03:08 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-02-15 11:19:48 +0000 |
commit | 611979eb5cafba7bb5369a19948f82453f117c65 (patch) | |
tree | fe04826f378fbd3b05d9f49173f6074726da5c00 /src/mongo/db/auth/sasl_scram_test.cpp | |
parent | 44a107ad428459cad6260490ae98bca442e07385 (diff) | |
download | mongo-611979eb5cafba7bb5369a19948f82453f117c65.tar.gz |
SERVER-44978 Thread-through ServiceContext and ThreadPool to ReadThroughCache
There are no functional changes to this CR, it just instantiates every
usage of ReadThroughCache with a ServiceContext and ThreadPool, which
will be used for making the acquire method asynchronous.
Diffstat (limited to 'src/mongo/db/auth/sasl_scram_test.cpp')
-rw-r--r-- | src/mongo/db/auth/sasl_scram_test.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/db/auth/sasl_scram_test.cpp b/src/mongo/db/auth/sasl_scram_test.cpp index 4b2ec0b84d5..81b89590101 100644 --- a/src/mongo/db/auth/sasl_scram_test.cpp +++ b/src/mongo/db/auth/sasl_scram_test.cpp @@ -191,8 +191,7 @@ protected: std::make_unique<AuthzManagerExternalStateMock>(); authzManagerExternalState = uniqueAuthzManagerExternalStateMock.get(); auto newManager = std::make_unique<AuthorizationManagerImpl>( - std::move(uniqueAuthzManagerExternalStateMock), - AuthorizationManagerImpl::InstallMockForTestingOrAuthImpl{}); + serviceContext.get(), std::move(uniqueAuthzManagerExternalStateMock)); authzSession = std::make_unique<AuthorizationSessionImpl>( std::make_unique<AuthzSessionExternalStateMock>(newManager.get()), AuthorizationSessionImpl::InstallMockForTestingOrAuthImpl{}); |