summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/storage_init.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/storage/storage_init.cpp')
-rw-r--r--src/mongo/db/storage/storage_init.cpp23
1 files changed, 11 insertions, 12 deletions
diff --git a/src/mongo/db/storage/storage_init.cpp b/src/mongo/db/storage/storage_init.cpp
index 4e46afd5a84..a17f5e494d5 100644
--- a/src/mongo/db/storage/storage_init.cpp
+++ b/src/mongo/db/storage/storage_init.cpp
@@ -36,22 +36,21 @@ namespace mongo {
// TODO: Does this belong here?
namespace {
- class StorageSSS : public ServerStatusSection {
- public:
- StorageSSS() : ServerStatusSection( "storageEngine" ) {
- }
+class StorageSSS : public ServerStatusSection {
+public:
+ StorageSSS() : ServerStatusSection("storageEngine") {}
- virtual ~StorageSSS() {}
+ virtual ~StorageSSS() {}
- virtual bool includeByDefault() const { return true; }
+ virtual bool includeByDefault() const {
+ return true;
+ }
- virtual BSONObj generateSection(OperationContext* txn,
- const BSONElement& configElement) const {
+ virtual BSONObj generateSection(OperationContext* txn, const BSONElement& configElement) const {
+ return BSON("name" << storageGlobalParams.engine);
+ }
- return BSON( "name" << storageGlobalParams.engine );
- }
-
- } storageSSS;
+} storageSSS;
} // namespace
} // namespace mongo