summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mongo/scripting/v8-3.25_utils.cpp2
-rw-r--r--src/mongo/scripting/v8_utils.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/scripting/v8-3.25_utils.cpp b/src/mongo/scripting/v8-3.25_utils.cpp
index 8daa4f4dacd..f0a2e87a6ea 100644
--- a/src/mongo/scripting/v8-3.25_utils.cpp
+++ b/src/mongo/scripting/v8-3.25_utils.cpp
@@ -255,7 +255,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;
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;