summaryrefslogtreecommitdiff
path: root/src/mongo/db/service_entry_point_common.h
diff options
context:
space:
mode:
authorHenrik Edin <henrik.edin@mongodb.com>2018-09-27 15:04:21 -0400
committerHenrik Edin <henrik.edin@mongodb.com>2018-10-04 14:31:16 -0400
commitd19dcfc1ccf76518898c5c6d0ebb3e78e37af45c (patch)
tree6861c500a1f620ff24316dd8203fe494020c896a /src/mongo/db/service_entry_point_common.h
parent3fcaa553f5c8ade0a4b6d1b66c29478fe7e2d937 (diff)
downloadmongo-d19dcfc1ccf76518898c5c6d0ebb3e78e37af45c.tar.gz
SERVER-37294 Remove dependency on clientdriver_network and transport_layer for embedded.
Diffstat (limited to 'src/mongo/db/service_entry_point_common.h')
-rw-r--r--src/mongo/db/service_entry_point_common.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/db/service_entry_point_common.h b/src/mongo/db/service_entry_point_common.h
index 42162774baf..15bbfbcbf4d 100644
--- a/src/mongo/db/service_entry_point_common.h
+++ b/src/mongo/db/service_entry_point_common.h
@@ -78,6 +78,13 @@ struct ServiceEntryPointCommon {
MONGO_WARN_UNUSED_RESULT_FUNCTION virtual std::unique_ptr<PolymorphicScoped>
scopedOperationCompletionShardingActions(OperationContext* opCtx) const = 0;
+
+ virtual void appendReplyMetadataOnError(OperationContext* opCtx,
+ BSONObjBuilder* metadataBob) const = 0;
+
+ virtual void appendReplyMetadata(OperationContext* opCtx,
+ const OpMsgRequest& request,
+ BSONObjBuilder* metadataBob) const = 0;
};
static DbResponse handleRequest(OperationContext* opCtx, const Message& m, const Hooks& hooks);