summaryrefslogtreecommitdiff
path: root/src/mongo/s/distlock.h
diff options
context:
space:
mode:
authorAndy Schwerin <schwerin@mongodb.com>2015-02-27 18:33:28 -0500
committerAndy Schwerin <schwerin@mongodb.com>2015-03-12 17:11:20 -0400
commit7cd9cf303c824478f0f6d60cadfcc1a25bdb21f2 (patch)
treeebeec8c3c2dc21359b941d95e2109e355542e65f /src/mongo/s/distlock.h
parent7ee3d124070db157181bc1b24f2b84913957c388 (diff)
downloadmongo-7cd9cf303c824478f0f6d60cadfcc1a25bdb21f2.tar.gz
SERVER-17310 Make mongo::mutex a typedef of boost::mutex and remove mongo::scoped_lock.
Diffstat (limited to 'src/mongo/s/distlock.h')
-rw-r--r--src/mongo/s/distlock.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/mongo/s/distlock.h b/src/mongo/s/distlock.h
index 4ce30222068..1b52039129c 100644
--- a/src/mongo/s/distlock.h
+++ b/src/mongo/s/distlock.h
@@ -127,9 +127,6 @@ namespace mongo {
class LastPings {
public:
- LastPings() : _mutex( "DistributedLock::LastPings" ) {}
- ~LastPings(){}
-
PingData getLastPing( const ConnectionString& conn, const std::string& lockName );
void setLastPing( const ConnectionString& conn, const std::string& lockName, const PingData& pd );
@@ -137,7 +134,7 @@ namespace mongo {
std::map< std::pair<std::string, std::string>, PingData > _lastPings;
};
- static LastPings lastPings;
+ static LastPings lastPings;
/**
* The constructor does not connect to the configdb yet and constructing does not mean the lock was acquired.