summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/server_status.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/commands/server_status.h')
-rw-r--r--src/mongo/db/commands/server_status.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/mongo/db/commands/server_status.h b/src/mongo/db/commands/server_status.h
index b017688acf2..506c1428629 100644
--- a/src/mongo/db/commands/server_status.h
+++ b/src/mongo/db/commands/server_status.h
@@ -80,7 +80,8 @@ public:
* @param configElement the element from the actual command related to this section
* so if the section is 'foo', this is cmdObj['foo']
*/
- virtual BSONObj generateSection(OperationContext* txn, const BSONElement& configElement) const {
+ virtual BSONObj generateSection(OperationContext* opCtx,
+ const BSONElement& configElement) const {
return BSONObj{};
};
@@ -94,10 +95,10 @@ public:
* If you are doing something a bit more complicated, you can implement this and have
* full control over what gets included in the command result.
*/
- virtual void appendSection(OperationContext* txn,
+ virtual void appendSection(OperationContext* opCtx,
const BSONElement& configElement,
BSONObjBuilder* result) const {
- const auto ret = generateSection(txn, configElement);
+ const auto ret = generateSection(opCtx, configElement);
if (ret.isEmpty())
return;
result->append(getSectionName(), ret);
@@ -114,7 +115,8 @@ public:
return true;
}
- virtual BSONObj generateSection(OperationContext* txn, const BSONElement& configElement) const;
+ virtual BSONObj generateSection(OperationContext* opCtx,
+ const BSONElement& configElement) const;
private:
const OpCounters* _counters;