summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/top_command.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/commands/top_command.cpp')
-rw-r--r--src/mongo/db/commands/top_command.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/commands/top_command.cpp b/src/mongo/db/commands/top_command.cpp
index 6f236de90da..80ef9171efd 100644
--- a/src/mongo/db/commands/top_command.cpp
+++ b/src/mongo/db/commands/top_command.cpp
@@ -65,7 +65,7 @@ public:
actions.addAction(ActionType::top);
out->push_back(Privilege(ResourcePattern::forClusterResource(), actions));
}
- virtual bool run(OperationContext* txn,
+ virtual bool run(OperationContext* opCtx,
const std::string& db,
BSONObj& cmdObj,
int options,
@@ -74,7 +74,7 @@ public:
{
BSONObjBuilder b(result.subobjStart("totals"));
b.append("note", "all times in microseconds");
- Top::get(txn->getClient()->getServiceContext()).append(b);
+ Top::get(opCtx->getClient()->getServiceContext()).append(b);
b.done();
}
return true;