summaryrefslogtreecommitdiff
path: root/src/mongo/s/client/sharding_connection_hook.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/s/client/sharding_connection_hook.cpp')
-rw-r--r--src/mongo/s/client/sharding_connection_hook.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/s/client/sharding_connection_hook.cpp b/src/mongo/s/client/sharding_connection_hook.cpp
index 7085a290a0c..36cb24bf9fc 100644
--- a/src/mongo/s/client/sharding_connection_hook.cpp
+++ b/src/mongo/s/client/sharding_connection_hook.cpp
@@ -78,9 +78,9 @@ void ShardingConnectionHook::onCreate(DBClientBase* conn) {
});
}
conn->setRequestMetadataWriter(
- [this](OperationContext* txn, BSONObjBuilder* metadataBob, StringData hostStringData) {
+ [this](OperationContext* opCtx, BSONObjBuilder* metadataBob, StringData hostStringData) {
return _egressHook->writeRequestMetadata(
- _shardedConnections, txn, hostStringData, metadataBob);
+ _shardedConnections, opCtx, hostStringData, metadataBob);
});