diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2020-05-03 01:09:53 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-05-07 05:42:43 +0000 |
commit | 7ee768a17cbc78f42c8e8938df2c68635f871bdf (patch) | |
tree | 77c99859031e3b96012ef829875fa922365f7252 /src/mongo/util/net/ssl_manager_openssl.cpp | |
parent | 59b1b711a622b6b1b77accbe459b064e52d45375 (diff) | |
download | mongo-7ee768a17cbc78f42c8e8938df2c68635f871bdf.tar.gz |
SERVER-47916 Make InvalidatingLRUCache use an 'epoch' when invalidating evicted checked-out values
Diffstat (limited to 'src/mongo/util/net/ssl_manager_openssl.cpp')
-rw-r--r-- | src/mongo/util/net/ssl_manager_openssl.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/util/net/ssl_manager_openssl.cpp b/src/mongo/util/net/ssl_manager_openssl.cpp index 03d728ab5d3..67f29f435a9 100644 --- a/src/mongo/util/net/ssl_manager_openssl.cpp +++ b/src/mongo/util/net/ssl_manager_openssl.cpp @@ -931,7 +931,7 @@ StatusWith<OCSPValidationContext> extractOcspUris(SSL_CTX* context, class OCSPCache : public ReadThroughCache<OCSPCacheKey, OCSPFetchResponse> { public: OCSPCache(ServiceContext* service) - : ReadThroughCache(_mutex, service, _threadPool, tlsOCSPCacheSize) { + : ReadThroughCache(_mutex, service, _threadPool, _lookup, tlsOCSPCacheSize) { _threadPool.startup(); } @@ -948,8 +948,8 @@ public: } private: - boost::optional<OCSPFetchResponse> lookup(OperationContext* opCtx, - const OCSPCacheKey& key) final { + static boost::optional<OCSPFetchResponse> _lookup(OperationContext* opCtx, + const OCSPCacheKey& key) { // If there is a CRL file, we expect the CRL file to cover the certificate status // information, and therefore we don't need to make a roundtrip. if (!getSSLGlobalParams().sslCRLFile.empty()) { |