diff options
author | Jonathan Reams <jbreams@mongodb.com> | 2018-06-22 15:15:12 -0400 |
---|---|---|
committer | Jonathan Reams <jbreams@mongodb.com> | 2018-08-16 16:45:00 -0400 |
commit | 1a643ba65b070c167cdfdd5056c7d2ac79dd5371 (patch) | |
tree | b284d5df88bfa8cd5d499e83de319ddd7055f00a /src/mongo/transport/service_state_machine.h | |
parent | 611460d96bf33a7654581ca23c4daad974b0ce45 (diff) | |
download | mongo-1a643ba65b070c167cdfdd5056c7d2ac79dd5371.tar.gz |
SERVER-34986 Allow connections to override maxConns based on CIDR range
Diffstat (limited to 'src/mongo/transport/service_state_machine.h')
-rw-r--r-- | src/mongo/transport/service_state_machine.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/transport/service_state_machine.h b/src/mongo/transport/service_state_machine.h index bac5417dd67..ee54eb99cc8 100644 --- a/src/mongo/transport/service_state_machine.h +++ b/src/mongo/transport/service_state_machine.h @@ -126,6 +126,12 @@ public: void start(Ownership ownershipModel); /* + * Set the executor to be used for the next call to runNext(). This allows switching between + * thread models after the SSM has started. + */ + void setServiceExecutor(transport::ServiceExecutor* executor); + + /* * Gets the current state of connection for testing/diagnostic purposes. */ State state(); @@ -219,6 +225,7 @@ private: transport::Mode _transportMode; ServiceContext* const _serviceContext; + transport::ServiceExecutor* _serviceExecutor; transport::SessionHandle _sessionHandle; const std::string _threadName; |