summaryrefslogtreecommitdiff
path: root/src/mongo/db/index_builder.cpp
diff options
context:
space:
mode:
authorAndy Schwerin <schwerin@mongodb.com>2015-03-04 10:30:44 -0500
committerAndy Schwerin <schwerin@mongodb.com>2015-03-05 17:35:14 -0500
commit59a9a04651486763b49ddb706a195bebccf76642 (patch)
tree335fa6d0cbc04f2c3577d2e4594e9a573f2b4594 /src/mongo/db/index_builder.cpp
parentac525a4566a46b6b79a8465903b2ab0391eab506 (diff)
downloadmongo-59a9a04651486763b49ddb706a195bebccf76642.tar.gz
SERVER-17310 Replace boost::*_mutex::scoped_lock with boost::lock_guard.
Achieved via grep, sed and bash: grep -Irl mutex::scoped_lock src/mongo | xargs sed -i.orig -E 's/(boost::(recursive_|timed_)?)mutex::scoped_lock/boost::lock_guard<\1mutex>/' Then, by converting boost::lock_guard to boost::unique_lock as appropriate. Finally, by removing unused mongo::mutex::try_lock.
Diffstat (limited to 'src/mongo/db/index_builder.cpp')
-rw-r--r--src/mongo/db/index_builder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/index_builder.cpp b/src/mongo/db/index_builder.cpp
index dca08c69de0..b50bdf552a2 100644
--- a/src/mongo/db/index_builder.cpp
+++ b/src/mongo/db/index_builder.cpp
@@ -59,7 +59,7 @@ namespace {
boost::condition_variable _bgIndexStartingCondVar;
void _setBgIndexStarting() {
- boost::mutex::scoped_lock lk(_bgIndexStartingMutex);
+ boost::lock_guard<boost::mutex> lk(_bgIndexStartingMutex);
invariant(_bgIndexStarting == false);
_bgIndexStarting = true;
_bgIndexStartingCondVar.notify_one();