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.cpp13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/mongo/db/storage/storage_init.cpp b/src/mongo/db/storage/storage_init.cpp
index 7cace5b3898..37b6746963c 100644
--- a/src/mongo/db/storage/storage_init.cpp
+++ b/src/mongo/db/storage/storage_init.cpp
@@ -1,6 +1,3 @@
-// storage_engine.cpp
-
-
/**
* Copyright (C) 2018-present MongoDB, Inc.
*
@@ -41,22 +38,20 @@
#include "mongo/db/storage/storage_options.h"
namespace mongo {
-
-// TODO: Does this belong here?
namespace {
class StorageSSS : public ServerStatusSection {
public:
StorageSSS() : ServerStatusSection("storageEngine") {}
- virtual ~StorageSSS() {}
+ ~StorageSSS() override = default;
- virtual bool includeByDefault() const {
+ bool includeByDefault() const override {
return true;
}
- virtual BSONObj generateSection(OperationContext* opCtx,
- const BSONElement& configElement) const {
+ BSONObj generateSection(OperationContext* opCtx,
+ const BSONElement& configElement) const override {
auto svcCtx = opCtx->getClient()->getServiceContext();
auto engine = svcCtx->getStorageEngine();
auto backupCursorHooks = BackupCursorHooks::get(svcCtx);