summaryrefslogtreecommitdiff
path: root/src/mongo/transport/service_executor_synchronous.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/transport/service_executor_synchronous.h')
-rw-r--r--src/mongo/transport/service_executor_synchronous.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mongo/transport/service_executor_synchronous.h b/src/mongo/transport/service_executor_synchronous.h
index 5fee75bbf2d..929418e7968 100644
--- a/src/mongo/transport/service_executor_synchronous.h
+++ b/src/mongo/transport/service_executor_synchronous.h
@@ -32,6 +32,7 @@
#include <deque>
#include "mongo/base/status.h"
+#include "mongo/db/service_context.h"
#include "mongo/platform/atomic_word.h"
#include "mongo/platform/mutex.h"
#include "mongo/stdx/condition_variable.h"
@@ -47,7 +48,9 @@ namespace transport {
*/
class ServiceExecutorSynchronous final : public ServiceExecutor {
public:
- explicit ServiceExecutorSynchronous(ServiceContext* ctx);
+ explicit ServiceExecutorSynchronous(ServiceContext* ctx = getGlobalServiceContext());
+
+ static ServiceExecutorSynchronous* get(ServiceContext* ctx);
Status start() override;
Status shutdown(Milliseconds timeout) override;