summaryrefslogtreecommitdiff
path: root/src/mongo/executor/scoped_task_executor.cpp
diff options
context:
space:
mode:
authorVojislav Stojkovic <vojislav.stojkovic@mongodb.com>2021-10-21 18:42:15 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-10-21 20:19:29 +0000
commite5db84f4b341fbd8723ca36b16f961284261e00f (patch)
treecc2864e8fad0095e2fa84d004cfc4ba682246fa7 /src/mongo/executor/scoped_task_executor.cpp
parentbe2c9110437973291614ba621ab24bdcdf271046 (diff)
downloadmongo-e5db84f4b341fbd8723ca36b16f961284261e00f.tar.gz
SERVER-59142 Add dropConnections API to TaskExecutor
Diffstat (limited to 'src/mongo/executor/scoped_task_executor.cpp')
-rw-r--r--src/mongo/executor/scoped_task_executor.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/executor/scoped_task_executor.cpp b/src/mongo/executor/scoped_task_executor.cpp
index c5b60e81913..82062cf1454 100644
--- a/src/mongo/executor/scoped_task_executor.cpp
+++ b/src/mongo/executor/scoped_task_executor.cpp
@@ -30,6 +30,7 @@
#include "mongo/platform/basic.h"
#include "mongo/executor/scoped_task_executor.h"
+#include "mongo/util/assert_util.h"
namespace mongo {
namespace executor {
@@ -185,6 +186,10 @@ public:
MONGO_UNREACHABLE;
}
+ void dropConnections(const HostAndPort& hostAndPort) override {
+ MONGO_UNREACHABLE;
+ }
+
private:
/**
* Helper function to get a shared_ptr<ScopedTaskExecutor::Impl> to this object, akin to