summaryrefslogtreecommitdiff
path: root/src/mongo/scripting/v8_utils.cpp
diff options
context:
space:
mode:
authorAndy Schwerin <schwerin@mongodb.com>2015-03-12 13:30:13 -0400
committerAndy Schwerin <schwerin@mongodb.com>2015-03-12 17:11:20 -0400
commit3bb26d2bb96b65177019fb78297a94d50e4acc67 (patch)
tree17e4842f21501972f7eb6bdeac17ede922f0a96e /src/mongo/scripting/v8_utils.cpp
parent5af44a739ae8ce061f65047d89586a75a0a51878 (diff)
downloadmongo-3bb26d2bb96b65177019fb78297a94d50e4acc67.tar.gz
SERVER-17568 Correctly acquire _mutex in CountdownLatchHolder::get in v8_utils.cpp
Diffstat (limited to 'src/mongo/scripting/v8_utils.cpp')
-rw-r--r--src/mongo/scripting/v8_utils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/scripting/v8_utils.cpp b/src/mongo/scripting/v8_utils.cpp
index a540666c61e..894d3ecbe27 100644
--- a/src/mongo/scripting/v8_utils.cpp
+++ b/src/mongo/scripting/v8_utils.cpp
@@ -252,7 +252,7 @@ namespace mongo {
};
boost::shared_ptr<Latch> get(int32_t desc) {
- boost::lock_guard<boost::mutex> lock(mutex);
+ boost::lock_guard<boost::mutex> lock(_mutex);
Map::iterator iter = _latches.find(desc);
jsassert(iter != _latches.end(), "not a valid CountDownLatch descriptor");
return iter->second;