diff options
author | Henrik Edin <henrik.edin@mongodb.com> | 2018-09-19 15:01:04 -0400 |
---|---|---|
committer | Henrik Edin <henrik.edin@mongodb.com> | 2018-09-26 09:46:29 -0400 |
commit | 29ed53c6e1880b89adacdb292227dec57fb78fdc (patch) | |
tree | 7cbf32bd7aec50b1f6eaf950d6fa5b27054a194a /src/mongo/db/service_entry_point_common.h | |
parent | aa952ac3b0d54d651f1cd8f618baee4fe0e10efa (diff) | |
download | mongo-29ed53c6e1880b89adacdb292227dec57fb78fdc.tar.gz |
SERVER-36084 Remove sharding runtime from ServiceEntryPointCommon and embedded build
Diffstat (limited to 'src/mongo/db/service_entry_point_common.h')
-rw-r--r-- | src/mongo/db/service_entry_point_common.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/mongo/db/service_entry_point_common.h b/src/mongo/db/service_entry_point_common.h index 1ec084d18b4..42162774baf 100644 --- a/src/mongo/db/service_entry_point_common.h +++ b/src/mongo/db/service_entry_point_common.h @@ -28,14 +28,13 @@ #pragma once -#include "mongo/transport/service_entry_point_impl.h" - #include "mongo/base/status.h" #include "mongo/db/commands.h" #include "mongo/db/dbmessage.h" #include "mongo/db/operation_context.h" #include "mongo/rpc/message.h" #include "mongo/util/fail_point_service.h" +#include "mongo/util/polymorphic_scoped.h" namespace mongo { @@ -72,6 +71,13 @@ struct ServiceEntryPointCommon { virtual void uassertCommandDoesNotSpecifyWriteConcern(const BSONObj& cmdObj) const = 0; virtual void attachCurOpErrInfo(OperationContext* opCtx, const BSONObj& replyObj) const = 0; + + virtual void handleException(const DBException& e, OperationContext* opCtx) const = 0; + + virtual void advanceConfigOptimeFromRequestMetadata(OperationContext* opCtx) const = 0; + + MONGO_WARN_UNUSED_RESULT_FUNCTION virtual std::unique_ptr<PolymorphicScoped> + scopedOperationCompletionShardingActions(OperationContext* opCtx) const = 0; }; static DbResponse handleRequest(OperationContext* opCtx, const Message& m, const Hooks& hooks); |