diff options
author | Amirsaman Memaripour <amirsaman.memaripour@mongodb.com> | 2020-09-17 17:36:35 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-11-06 04:33:51 +0000 |
commit | a0fce10bb34cb04455f02948352f5eb37b38ad75 (patch) | |
tree | bc97ee65b351239040bf7cb1b3ff3c1cabe6ba54 /src/mongo/db/service_entry_point_common.h | |
parent | ca3c18008bff68e2684ad5954452c6513f7a744e (diff) | |
download | mongo-a0fce10bb34cb04455f02948352f5eb37b38ad75.tar.gz |
SERVER-49107 Add support for async execution to MongoD command path
Diffstat (limited to 'src/mongo/db/service_entry_point_common.h')
-rw-r--r-- | src/mongo/db/service_entry_point_common.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/service_entry_point_common.h b/src/mongo/db/service_entry_point_common.h index a5623e41c88..dbf95b165a2 100644 --- a/src/mongo/db/service_entry_point_common.h +++ b/src/mongo/db/service_entry_point_common.h @@ -84,7 +84,7 @@ struct ServiceEntryPointCommon { virtual void attachCurOpErrInfo(OperationContext* opCtx, const BSONObj& replyObj) const = 0; - virtual void handleException(const DBException& e, OperationContext* opCtx) const = 0; + virtual void handleException(const Status& status, OperationContext* opCtx) const = 0; virtual void advanceConfigOpTimeFromRequestMetadata(OperationContext* opCtx) const = 0; @@ -101,7 +101,7 @@ struct ServiceEntryPointCommon { static Future<DbResponse> handleRequest(OperationContext* opCtx, const Message& m, - const Hooks& hooks) noexcept; + std::unique_ptr<const Hooks> hooks) noexcept; /** * Produce a new object based on cmdObj, but with redactions applied as specified by |