diff options
author | Eliot Horowitz <eliot@10gen.com> | 2012-07-09 16:16:12 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2012-07-09 16:18:20 -0400 |
commit | 9da54325e89514108956ff72099011aa6866a029 (patch) | |
tree | be7144ff316175aadc4b1a380bf36cc9e5999a2c /src/mongo/db/stats/top.h | |
parent | a5d502527b6daf931e9ae63ac874821afa04ee30 (diff) | |
download | mongo-9da54325e89514108956ff72099011aa6866a029.tar.gz |
use better mutex and StringData for top
Diffstat (limited to 'src/mongo/db/stats/top.h')
-rw-r--r-- | src/mongo/db/stats/top.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/stats/top.h b/src/mongo/db/stats/top.h index 22470cb5d90..26206670149 100644 --- a/src/mongo/db/stats/top.h +++ b/src/mongo/db/stats/top.h @@ -64,7 +64,7 @@ namespace mongo { typedef map<string,CollectionData> UsageMap; public: - void record( const string& ns , int op , int lockType , long long micros , bool command ); + void record( const StringData& ns , int op , int lockType , long long micros , bool command ); void append( BSONObjBuilder& b ); void cloneMap(UsageMap& out) const; CollectionData getGlobalData() const { return _global; } @@ -78,7 +78,7 @@ namespace mongo { void _appendStatsEntry( BSONObjBuilder& b , const char * statsName , const UsageData& map ) const; void _record( CollectionData& c , int op , int lockType , long long micros , bool command ); - mutable mongo::mutex _lock; + mutable SimpleMutex _lock; CollectionData _global; UsageMap _usage; string _lastDropped; |