diff options
author | Billy Donahue <billy.donahue@mongodb.com> | 2018-03-05 15:48:48 -0500 |
---|---|---|
committer | Billy Donahue <billy.donahue@mongodb.com> | 2018-03-06 10:04:53 -0500 |
commit | e3a3f54a6c0ec4f471e0aff7a48b8a30f8c0e9cb (patch) | |
tree | 9c2f4ac5a4d8751336397c8af59a08bf78f1c201 /src/mongo/db/service_entry_point_common.h | |
parent | 5dfa372b25b1a26bb12e09fdb029ff219b0f5343 (diff) | |
download | mongo-e3a3f54a6c0ec4f471e0aff7a48b8a30f8c0e9cb.tar.gz |
SERVER-33065 CommandReplyBuilder and CommandInvocation
Revert "Revert "SERVER-33065 CommandReplyBuilder and CommandInvocation""
This reverts commit 74177edb35b6ce7594e4751051010ceade592484.
Leave out the unintentional repl/ change this time.
Diffstat (limited to 'src/mongo/db/service_entry_point_common.h')
-rw-r--r-- | src/mongo/db/service_entry_point_common.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mongo/db/service_entry_point_common.h b/src/mongo/db/service_entry_point_common.h index 73788d9ba66..f90fa0660af 100644 --- a/src/mongo/db/service_entry_point_common.h +++ b/src/mongo/db/service_entry_point_common.h @@ -61,18 +61,17 @@ struct ServiceEntryPointCommon { virtual ~Hooks(); virtual bool lockedForWriting() const = 0; virtual void waitForReadConcern(OperationContext* opCtx, - const Command* command, + const CommandInvocation* invocation, const OpMsgRequest& request) const = 0; virtual void waitForWriteConcern(OperationContext* opCtx, const std::string& commandName, const repl::OpTime& lastOpBeforeRun, - BSONObjBuilder* commandResponseBuilder) const = 0; + BSONObjBuilder commandResponseBuilder) const = 0; virtual void waitForLinearizableReadConcern(OperationContext* opCtx) const = 0; virtual void uassertCommandDoesNotSpecifyWriteConcern(const BSONObj& cmdObj) const = 0; - virtual void attachCurOpErrInfo(OperationContext* opCtx, - BSONObjBuilder& replyObj) const = 0; + virtual void attachCurOpErrInfo(OperationContext* opCtx, const BSONObj& replyObj) const = 0; }; static DbResponse handleRequest(OperationContext* opCtx, const Message& m, const Hooks& hooks); |