summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/storage_init.cpp
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2014-11-24 15:32:35 -0500
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2014-11-25 11:57:21 -0500
commit4429df3a6c2e03f9b406fe27aa98caa660506d73 (patch)
treecd84af314c50ec3c30a946a0ce299215b6065738 /src/mongo/db/storage/storage_init.cpp
parent20f830b37613ca1804775d85303074d5c4eb1bd4 (diff)
downloadmongo-4429df3a6c2e03f9b406fe27aa98caa660506d73.tar.gz
SERVER-14062 Add OperationContext to ServerStatusSection
Diffstat (limited to 'src/mongo/db/storage/storage_init.cpp')
-rw-r--r--src/mongo/db/storage/storage_init.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/mongo/db/storage/storage_init.cpp b/src/mongo/db/storage/storage_init.cpp
index 08ed2d69716..4e46afd5a84 100644
--- a/src/mongo/db/storage/storage_init.cpp
+++ b/src/mongo/db/storage/storage_init.cpp
@@ -33,8 +33,8 @@
namespace mongo {
- // TODO: Does this belong here?
- namespace {
+// TODO: Does this belong here?
+namespace {
class StorageSSS : public ServerStatusSection {
public:
@@ -45,12 +45,13 @@ namespace mongo {
virtual bool includeByDefault() const { return true; }
- virtual BSONObj generateSection(const BSONElement& configElement) const {
+ virtual BSONObj generateSection(OperationContext* txn,
+ const BSONElement& configElement) const {
+
return BSON( "name" << storageGlobalParams.engine );
}
} storageSSS;
- } // namespace
-
+} // namespace
} // namespace mongo