summaryrefslogtreecommitdiff
path: root/src/mongo/db/d_concurrency.cpp
diff options
context:
space:
mode:
authorSpencer T Brody <spencer@10gen.com>2012-12-19 16:34:22 -0500
committerSpencer T Brody <spencer@10gen.com>2012-12-20 15:53:31 -0500
commit09acb35f3d09621ce2df9b099ddcb5db14fa0e1e (patch)
treef76938cb6e9403e69fe494ae601f684c2fbb7ab2 /src/mongo/db/d_concurrency.cpp
parent458796c7cca9f299ee2f23b4dec25162d3235b29 (diff)
downloadmongo-09acb35f3d09621ce2df9b099ddcb5db14fa0e1e.tar.gz
SERVER-7572 Update auth checking of serverStatus sub-sections
Diffstat (limited to 'src/mongo/db/d_concurrency.cpp')
-rw-r--r--src/mongo/db/d_concurrency.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mongo/db/d_concurrency.cpp b/src/mongo/db/d_concurrency.cpp
index b37a70986e2..49b0e40d9fc 100644
--- a/src/mongo/db/d_concurrency.cpp
+++ b/src/mongo/db/d_concurrency.cpp
@@ -808,9 +808,8 @@ namespace mongo {
}
virtual bool includeByDefault() const { return true; }
- virtual bool adminOnly() const { return false; }
- virtual BSONObj generateSection( const BSONElement& configElement, bool userIsAdmin ) const {
+ virtual BSONObj generateSection(const BSONElement& configElement) const {
BSONObjBuilder t;
t.append( "totalTime" , (long long)(1000 * ( curTimeMillis64() - _started ) ) );
@@ -848,9 +847,8 @@ namespace mongo {
public:
LockStatsServerStatusSection() : ServerStatusSection( "locks" ){}
virtual bool includeByDefault() const { return true; }
- virtual bool adminOnly() const { return false; }
- BSONObj generateSection( const BSONElement& configElement, bool userIsAdmin ) const {
+ BSONObj generateSection( const BSONElement& configElement) const {
BSONObjBuilder b;
b.append(".", qlk.stats.report());
b.append("admin", nestableLocks[Lock::admin]->stats.report());