summaryrefslogtreecommitdiff
path: root/src/mongo/db/ftdc/ftdc_commands.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/ftdc/ftdc_commands.cpp')
-rw-r--r--src/mongo/db/ftdc/ftdc_commands.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/ftdc/ftdc_commands.cpp b/src/mongo/db/ftdc/ftdc_commands.cpp
index e9205b1b5ab..e50f5d9cf71 100644
--- a/src/mongo/db/ftdc/ftdc_commands.cpp
+++ b/src/mongo/db/ftdc/ftdc_commands.cpp
@@ -88,7 +88,7 @@ public:
return Status::OK();
}
- bool run(OperationContext* txn,
+ bool run(OperationContext* opCtx,
const std::string& db,
BSONObj& cmdObj,
int options,
@@ -96,7 +96,8 @@ public:
BSONObjBuilder& result) override {
result.append(
- "data", FTDCController::get(txn->getServiceContext())->getMostRecentPeriodicDocument());
+ "data",
+ FTDCController::get(opCtx->getServiceContext())->getMostRecentPeriodicDocument());
return true;
}