diff options
author | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2016-07-26 15:23:10 -0400 |
---|---|---|
committer | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2016-07-26 15:23:51 -0400 |
commit | 1febb4ceb0e59743b0a49af35db10c4c689aa130 (patch) | |
tree | 431445a395fd4fbd1e7c94bf1c4151bba714088d /src/mongo/s/client/sharding_connection_hook.cpp | |
parent | 7daf57f28f564329e92b8779cf12845776b958b3 (diff) | |
download | mongo-1febb4ceb0e59743b0a49af35db10c4c689aa130.tar.gz |
SERVER-24615 Add support for OperationContext in EgressMetadataHook
Diffstat (limited to 'src/mongo/s/client/sharding_connection_hook.cpp')
-rw-r--r-- | src/mongo/s/client/sharding_connection_hook.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mongo/s/client/sharding_connection_hook.cpp b/src/mongo/s/client/sharding_connection_hook.cpp index b838c50e10c..b24bccd3381 100644 --- a/src/mongo/s/client/sharding_connection_hook.cpp +++ b/src/mongo/s/client/sharding_connection_hook.cpp @@ -77,9 +77,11 @@ void ShardingConnectionHook::onCreate(DBClientBase* conn) { return _egressHook->readReplyMetadata(target, metadataObj); }); } - conn->setRequestMetadataWriter([this](BSONObjBuilder* metadataBob, StringData hostStringData) { - return _egressHook->writeRequestMetadata(_shardedConnections, hostStringData, metadataBob); - }); + conn->setRequestMetadataWriter( + [this](OperationContext* txn, BSONObjBuilder* metadataBob, StringData hostStringData) { + return _egressHook->writeRequestMetadata( + _shardedConnections, txn, hostStringData, metadataBob); + }); if (conn->type() == ConnectionString::MASTER) { |