summaryrefslogtreecommitdiff
path: root/db/lasterror.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'db/lasterror.cpp')
-rw-r--r--db/lasterror.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/db/lasterror.cpp b/db/lasterror.cpp
index e8b1fcf..9fefcfa 100644
--- a/db/lasterror.cpp
+++ b/db/lasterror.cpp
@@ -28,7 +28,7 @@ namespace mongo {
LastError LastError::noError;
LastErrorHolder lastError;
- boost::mutex LastErrorHolder::_idsmutex;
+ mongo::mutex LastErrorHolder::_idsmutex;
void LastError::appendSelf( BSONObjBuilder &b ) {
if ( !valid ) {
@@ -75,7 +75,7 @@ namespace mongo {
if ( id == 0 )
return _tl.get();
- boostlock lock(_idsmutex);
+ scoped_lock lock(_idsmutex);
map<int,Status>::iterator i = _ids.find( id );
if ( i == _ids.end() ){
if ( ! create )
@@ -95,7 +95,7 @@ namespace mongo {
}
void LastErrorHolder::remove( int id ){
- boostlock lock(_idsmutex);
+ scoped_lock lock(_idsmutex);
map<int,Status>::iterator i = _ids.find( id );
if ( i == _ids.end() )
return;
@@ -121,7 +121,7 @@ namespace mongo {
return;
}
- boostlock lock(_idsmutex);
+ scoped_lock lock(_idsmutex);
Status & status = _ids[id];
status.time = time(0);
status.lerr = le;