summaryrefslogtreecommitdiff
path: root/src/mongo/transport/service_executor.h
diff options
context:
space:
mode:
authorHenrik Edin <henrik.edin@mongodb.com>2017-09-05 11:58:12 -0400
committerHenrik Edin <henrik.edin@mongodb.com>2017-09-22 17:13:42 -0400
commit12eb869725f4cefd94f3b4a7e1292f82691ad301 (patch)
tree96a2cab6585001a956b447c3ffc15dd7a1550004 /src/mongo/transport/service_executor.h
parent6732fbb1fb749e9f22f0ed4633e24515f842dafc (diff)
downloadmongo-12eb869725f4cefd94f3b4a7e1292f82691ad301.tar.gz
SERVER-30471 Service executors take a timeout in shutdown to honor shutdown grace period.
Add shutdown of service entry point, service executors and transport layer for mongos when built with ASAN.
Diffstat (limited to 'src/mongo/transport/service_executor.h')
-rw-r--r--src/mongo/transport/service_executor.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/transport/service_executor.h b/src/mongo/transport/service_executor.h
index 684e9d0e9d2..21caa2582a8 100644
--- a/src/mongo/transport/service_executor.h
+++ b/src/mongo/transport/service_executor.h
@@ -33,6 +33,7 @@
#include "mongo/platform/bitwise_enum_operators.h"
#include "mongo/stdx/functional.h"
#include "mongo/transport/transport_mode.h"
+#include "mongo/util/duration.h"
namespace mongo {
// This needs to be forward declared here because the service_context.h is a circular dependency.
@@ -85,7 +86,7 @@ public:
*
* This should only be called during server shutdown to gracefully destroy the ServiceExecutor
*/
- virtual Status shutdown() = 0;
+ virtual Status shutdown(Milliseconds timeout) = 0;
/*
* Returns if this service executor is using asynchronous or synchronous networking.