summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/server_status_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/commands/server_status_internal.h')
-rw-r--r--src/mongo/db/commands/server_status_internal.h23
1 files changed, 11 insertions, 12 deletions
diff --git a/src/mongo/db/commands/server_status_internal.h b/src/mongo/db/commands/server_status_internal.h
index 37e3bbf3439..6f5e15d5d33 100644
--- a/src/mongo/db/commands/server_status_internal.h
+++ b/src/mongo/db/commands/server_status_internal.h
@@ -37,21 +37,20 @@
namespace mongo {
- class ServerStatusMetric;
+class ServerStatusMetric;
- class MetricTree {
- public:
- void add( ServerStatusMetric* metric );
+class MetricTree {
+public:
+ void add(ServerStatusMetric* metric);
- void appendTo( BSONObjBuilder& b ) const;
+ void appendTo(BSONObjBuilder& b) const;
- static MetricTree* theMetricTree;
- private:
+ static MetricTree* theMetricTree;
- void _add( const std::string& path, ServerStatusMetric* metric );
-
- std::map<std::string, MetricTree*> _subtrees;
- std::map<std::string, ServerStatusMetric*> _metrics;
- };
+private:
+ void _add(const std::string& path, ServerStatusMetric* metric);
+ std::map<std::string, MetricTree*> _subtrees;
+ std::map<std::string, ServerStatusMetric*> _metrics;
+};
}