diff options
author | Randolph Tan <randolph@10gen.com> | 2017-03-09 10:51:50 -0500 |
---|---|---|
committer | Randolph Tan <randolph@10gen.com> | 2017-03-09 10:51:50 -0500 |
commit | 4e2cb91ed1fe8a9a8caead72a7f0bd56b2ba28d1 (patch) | |
tree | d17054bdecbcae1effc432ecf041a2ca5a853be9 /src/mongo/rpc/metadata.h | |
parent | 73d3473fb11ff4fbdb404d0c6c409a309ccd7646 (diff) | |
download | mongo-4e2cb91ed1fe8a9a8caead72a7f0bd56b2ba28d1.tar.gz |
Revert "SERVER-27750 Attach LogicalTimeMetadata to globalConnPool and shardConnectionPool"
This reverts commit 34dbe2a42d1db621f16555878b57f48efb30cc28.
Diffstat (limited to 'src/mongo/rpc/metadata.h')
-rw-r--r-- | src/mongo/rpc/metadata.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mongo/rpc/metadata.h b/src/mongo/rpc/metadata.h index 42c10bb3d24..d8956de30f7 100644 --- a/src/mongo/rpc/metadata.h +++ b/src/mongo/rpc/metadata.h @@ -104,11 +104,11 @@ StatusWith<BSONObj> downconvertReplyMetadata(const BSONObj& commandReply, /** * A function type for writing request metadata. The function takes a pointer to an optional * OperationContext so metadata associated with a Client can be appended, a pointer to a - * BSONObjBuilder used to construct the metadata object and returns a Status indicating if the - * metadata was written successfully. + * BSONObjBuilder used to construct the metadata object and the server address of the target of the + * request and returns a Status indicating if the metadata was written successfully. */ using RequestMetadataWriter = - stdx::function<Status(OperationContext* opCtx, BSONObjBuilder* metadataBuilder)>; + stdx::function<Status(OperationContext*, BSONObjBuilder*, StringData)>; /** * A function type for reading reply metadata. The function takes a a reference to a @@ -118,8 +118,7 @@ using RequestMetadataWriter = * * TODO: would it be a layering violation if this hook took an OperationContext* ? */ -using ReplyMetadataReader = - stdx::function<Status(const BSONObj& replyMetadata, StringData sourceHost)>; +using ReplyMetadataReader = stdx::function<Status(const BSONObj&, StringData)>; } // namespace rpc } // namespace mongo |