summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/query_settings.cpp
diff options
context:
space:
mode:
authorAdam Midvidy <amidvidy@gmail.com>2015-06-17 10:27:13 -0400
committerAdam Midvidy <amidvidy@gmail.com>2015-06-17 13:32:39 -0400
commit449e0f2b47e32060433cb6f68d967ea53c8573d1 (patch)
tree6e857f03a636b34ad8710e0b3e35a9115523483b /src/mongo/db/query/query_settings.cpp
parentcbc69e7dcb875b35e161875317bca701b48c770c (diff)
downloadmongo-449e0f2b47e32060433cb6f68d967ea53c8573d1.tar.gz
SERVER-18723 boost -> stdx for mutex, unique_lock, and lock_guard
Diffstat (limited to 'src/mongo/db/query/query_settings.cpp')
-rw-r--r--src/mongo/db/query/query_settings.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mongo/db/query/query_settings.cpp b/src/mongo/db/query/query_settings.cpp
index 6c12dbcc069..c6b2f34fcb8 100644
--- a/src/mongo/db/query/query_settings.cpp
+++ b/src/mongo/db/query/query_settings.cpp
@@ -86,7 +86,7 @@ namespace mongo {
AllowedIndices** allowedIndicesOut) const {
invariant(allowedIndicesOut);
- boost::lock_guard<boost::mutex> cacheLock(_mutex);
+ stdx::lock_guard<stdx::mutex> cacheLock(_mutex);
AllowedIndexEntryMap::const_iterator cacheIter = _allowedIndexEntryMap.find(key);
// Nothing to do if key does not exist in query settings.
@@ -104,7 +104,7 @@ namespace mongo {
}
std::vector<AllowedIndexEntry*> QuerySettings::getAllAllowedIndices() const {
- boost::lock_guard<boost::mutex> cacheLock(_mutex);
+ stdx::lock_guard<stdx::mutex> cacheLock(_mutex);
vector<AllowedIndexEntry*> entries;
for (AllowedIndexEntryMap::const_iterator i = _allowedIndexEntryMap.begin(); i != _allowedIndexEntryMap.end(); ++i) {
AllowedIndexEntry* entry = i->second;
@@ -122,7 +122,7 @@ namespace mongo {
const BSONObj& projection = lpq.getProj();
AllowedIndexEntry* entry = new AllowedIndexEntry(query, sort, projection, indexes);
- boost::lock_guard<boost::mutex> cacheLock(_mutex);
+ stdx::lock_guard<stdx::mutex> cacheLock(_mutex);
AllowedIndexEntryMap::iterator i = _allowedIndexEntryMap.find(key);
// Replace existing entry.
if (i != _allowedIndexEntryMap.end()) {
@@ -133,7 +133,7 @@ namespace mongo {
}
void QuerySettings::removeAllowedIndices(const PlanCacheKey& key) {
- boost::lock_guard<boost::mutex> cacheLock(_mutex);
+ stdx::lock_guard<stdx::mutex> cacheLock(_mutex);
AllowedIndexEntryMap::iterator i = _allowedIndexEntryMap.find(key);
// Nothing to do if key does not exist in query settings.
@@ -148,7 +148,7 @@ namespace mongo {
}
void QuerySettings::clearAllowedIndices() {
- boost::lock_guard<boost::mutex> cacheLock(_mutex);
+ stdx::lock_guard<stdx::mutex> cacheLock(_mutex);
_clear();
}