summaryrefslogtreecommitdiff
path: root/src/mongo/s/s_sharding_server_status.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/s/s_sharding_server_status.cpp')
-rw-r--r--src/mongo/s/s_sharding_server_status.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/s/s_sharding_server_status.cpp b/src/mongo/s/s_sharding_server_status.cpp
index 5be289d5d18..3b91159b110 100644
--- a/src/mongo/s/s_sharding_server_status.cpp
+++ b/src/mongo/s/s_sharding_server_status.cpp
@@ -45,16 +45,16 @@ public:
return true;
}
- BSONObj generateSection(OperationContext* txn,
+ BSONObj generateSection(OperationContext* opCtx,
const BSONElement& configElement) const override {
- auto shardRegistry = Grid::get(txn)->shardRegistry();
+ auto shardRegistry = Grid::get(opCtx)->shardRegistry();
invariant(shardRegistry);
BSONObjBuilder result;
result.append("configsvrConnectionString",
shardRegistry->getConfigServerConnectionString().toString());
- Grid::get(txn)->configOpTime().append(&result, "lastSeenConfigServerOpTime");
+ Grid::get(opCtx)->configOpTime().append(&result, "lastSeenConfigServerOpTime");
return result.obj();
}