diff options
author | Andy Schwerin <schwerin@mongodb.com> | 2015-03-12 13:30:13 -0400 |
---|---|---|
committer | Andy Schwerin <schwerin@mongodb.com> | 2015-03-12 17:11:20 -0400 |
commit | 3bb26d2bb96b65177019fb78297a94d50e4acc67 (patch) | |
tree | 17e4842f21501972f7eb6bdeac17ede922f0a96e /src/mongo/scripting/v8_utils.cpp | |
parent | 5af44a739ae8ce061f65047d89586a75a0a51878 (diff) | |
download | mongo-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.cpp | 2 |
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; |