diff options
author | Ben Caimano <ben.caimano@mongodb.com> | 2019-09-17 23:22:19 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-09-17 23:22:19 +0000 |
commit | bc11369435ca51e2ff6897433d00f6b909f6a25f (patch) | |
tree | 251653ec8285d798b41846e343e7e414e80ff277 /src/mongo/db/ttl_collection_cache.cpp | |
parent | 45aea2495306dd61fab46bd398735bb6aaf7b53a (diff) | |
download | mongo-bc11369435ca51e2ff6897433d00f6b909f6a25f.tar.gz |
SERVER-42165 Replace uses of stdx::mutex with mongo::Mutex
Diffstat (limited to 'src/mongo/db/ttl_collection_cache.cpp')
-rw-r--r-- | src/mongo/db/ttl_collection_cache.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/ttl_collection_cache.cpp b/src/mongo/db/ttl_collection_cache.cpp index bb272653d24..d4d9ffe7694 100644 --- a/src/mongo/db/ttl_collection_cache.cpp +++ b/src/mongo/db/ttl_collection_cache.cpp @@ -46,19 +46,19 @@ TTLCollectionCache& TTLCollectionCache::get(ServiceContext* ctx) { } void TTLCollectionCache::registerTTLInfo(std::pair<UUID, std::string>&& ttlInfo) { - stdx::lock_guard<stdx::mutex> lock(_ttlInfosLock); + stdx::lock_guard<Latch> lock(_ttlInfosLock); _ttlInfos.push_back(std::move(ttlInfo)); } void TTLCollectionCache::deregisterTTLInfo(const std::pair<UUID, std::string>& ttlInfo) { - stdx::lock_guard<stdx::mutex> lock(_ttlInfosLock); + stdx::lock_guard<Latch> lock(_ttlInfosLock); auto collIter = std::find(_ttlInfos.begin(), _ttlInfos.end(), ttlInfo); fassert(40220, collIter != _ttlInfos.end()); _ttlInfos.erase(collIter); } std::vector<std::pair<UUID, std::string>> TTLCollectionCache::getTTLInfos() { - stdx::lock_guard<stdx::mutex> lock(_ttlInfosLock); + stdx::lock_guard<Latch> lock(_ttlInfosLock); return _ttlInfos; } }; // namespace mongo |