summaryrefslogtreecommitdiff
path: root/src/mongo/util/net/ssl_manager_openssl.cpp
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2020-05-03 01:09:53 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-05-07 05:42:43 +0000
commit7ee768a17cbc78f42c8e8938df2c68635f871bdf (patch)
tree77c99859031e3b96012ef829875fa922365f7252 /src/mongo/util/net/ssl_manager_openssl.cpp
parent59b1b711a622b6b1b77accbe459b064e52d45375 (diff)
downloadmongo-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.cpp6
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()) {