summaryrefslogtreecommitdiff
path: root/src/mongo/db/client.h
diff options
context:
space:
mode:
authorRandolph Tan <randolph@mongodb.com>2019-09-13 18:46:46 +0000
committerevergreen <evergreen@mongodb.com>2019-09-13 18:46:46 +0000
commitc4467548514ff07721f4de215b3b74d1111ee9d1 (patch)
tree8441af03d79e894ff41e1f93b265c0eb7fd661fe /src/mongo/db/client.h
parent707ee6aa025936c5566625cc1b23cf2ffc6de9dc (diff)
downloadmongo-c4467548514ff07721f4de215b3b74d1111ee9d1.tar.gz
SERVER-43174 Make migration destination threads killable
Diffstat (limited to 'src/mongo/db/client.h')
-rw-r--r--src/mongo/db/client.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/client.h b/src/mongo/db/client.h
index e7bed7b706f..75e828c63c3 100644
--- a/src/mongo/db/client.h
+++ b/src/mongo/db/client.h
@@ -76,6 +76,11 @@ public:
transport::SessionHandle session);
/**
+ * Same as initThread, but also explicitly sets the client for this thread to be killable.
+ */
+ static void initKillableThread(StringData desc, ServiceContext* serviceContext);
+
+ /**
* Moves client into the thread_local for this thread. After this call, Client::getCurrent
* and cc() will return client.get(). The client will be destroyed when the thread exits
* or the ThreadClient RAII helper exits its scope.