diff options
author | Andrew Chen <a.chen@mongodb.com> | 2020-07-01 15:48:23 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-07-30 14:48:04 +0000 |
commit | 051bd6e51b33d7fd8a1265e166efffd20178a86d (patch) | |
tree | 6a2b92974c8e1cd148e0f085d0091ea0942e21f5 /src/mongo/transport/service_entry_point.h | |
parent | 41fda13f7239308239ade7f143f9b5e2fef0e87b (diff) | |
download | mongo-051bd6e51b33d7fd8a1265e166efffd20178a86d.tar.gz |
SERVER-48978 Futurize handleRequest
Diffstat (limited to 'src/mongo/transport/service_entry_point.h')
-rw-r--r-- | src/mongo/transport/service_entry_point.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/transport/service_entry_point.h b/src/mongo/transport/service_entry_point.h index 2c3ded7849a..aa970f1ef67 100644 --- a/src/mongo/transport/service_entry_point.h +++ b/src/mongo/transport/service_entry_point.h @@ -32,6 +32,7 @@ #include "mongo/bson/bsonobjbuilder.h" #include "mongo/db/dbmessage.h" #include "mongo/transport/session.h" +#include "mongo/util/future.h" namespace mongo { @@ -82,7 +83,8 @@ public: /** * Processes a request and fills out a DbResponse. */ - virtual DbResponse handleRequest(OperationContext* opCtx, const Message& request) = 0; + virtual Future<DbResponse> handleRequest(OperationContext* opCtx, + const Message& request) noexcept = 0; protected: ServiceEntryPoint() = default; |