diff options
Diffstat (limited to 'src/mongo/executor/remote_command_response.h')
-rw-r--r-- | src/mongo/executor/remote_command_response.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mongo/executor/remote_command_response.h b/src/mongo/executor/remote_command_response.h index 7842ebdfe14..53c785ab874 100644 --- a/src/mongo/executor/remote_command_response.h +++ b/src/mongo/executor/remote_command_response.h @@ -57,22 +57,22 @@ struct RemoteCommandResponseBase { RemoteCommandResponseBase(ErrorCodes::Error code, std::string reason); - RemoteCommandResponseBase(ErrorCodes::Error code, std::string reason, Milliseconds millis); + RemoteCommandResponseBase(ErrorCodes::Error code, std::string reason, Microseconds elapsed); RemoteCommandResponseBase(Status s); - RemoteCommandResponseBase(Status s, Milliseconds millis); + RemoteCommandResponseBase(Status s, Microseconds elapsed); - RemoteCommandResponseBase(BSONObj dataObj, Milliseconds millis, bool moreToCome = false); + RemoteCommandResponseBase(BSONObj dataObj, Microseconds elapsed, bool moreToCome = false); RemoteCommandResponseBase(const rpc::ReplyInterface& rpcReply, - Milliseconds millis, + Microseconds elapsed, bool moreToCome = false); bool isOK() const; BSONObj data; // Always owned. May point into message. - boost::optional<Milliseconds> elapsedMillis; + boost::optional<Microseconds> elapsed; Status status = Status::OK(); bool moreToCome = false; // Whether or not the moreToCome bit is set on an exhaust message. @@ -111,17 +111,17 @@ struct RemoteCommandOnAnyResponse : RemoteCommandResponseBase { RemoteCommandOnAnyResponse(boost::optional<HostAndPort> hp, ErrorCodes::Error code, std::string reason, - Milliseconds millis); + Microseconds elapsed); RemoteCommandOnAnyResponse(boost::optional<HostAndPort> hp, Status s); - RemoteCommandOnAnyResponse(boost::optional<HostAndPort> hp, Status s, Milliseconds millis); + RemoteCommandOnAnyResponse(boost::optional<HostAndPort> hp, Status s, Microseconds elapsed); - RemoteCommandOnAnyResponse(HostAndPort hp, BSONObj dataObj, Milliseconds millis); + RemoteCommandOnAnyResponse(HostAndPort hp, BSONObj dataObj, Microseconds elapsed); RemoteCommandOnAnyResponse(HostAndPort hp, const rpc::ReplyInterface& rpcReply, - Milliseconds millis); + Microseconds elapsed); RemoteCommandOnAnyResponse(boost::optional<HostAndPort> hp, const RemoteCommandResponse& other); |