summaryrefslogtreecommitdiff
path: root/src/mongo/db/client.cpp
diff options
context:
space:
mode:
authorGregory Wlodarek <gregory.wlodarek@mongodb.com>2018-11-14 12:27:43 -0500
committerGregory Wlodarek <gregory.wlodarek@mongodb.com>2018-11-16 08:44:45 -0500
commit4faca08a32b89c399785e3de0bf6f928482d83f3 (patch)
tree70f5605f90d84e732dd3225c71b9382882ec135c /src/mongo/db/client.cpp
parent6d4e557f6959dc326cd49249517fa6254b4bb0f8 (diff)
downloadmongo-4faca08a32b89c399785e3de0bf6f928482d83f3.tar.gz
SERVER-37893 Remove Client::initThreadIfNotAlready in favor of using the Client RAII helper
Diffstat (limited to 'src/mongo/db/client.cpp')
-rw-r--r--src/mongo/db/client.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/mongo/db/client.cpp b/src/mongo/db/client.cpp
index da08647395b..e7f3e8d9615 100644
--- a/src/mongo/db/client.cpp
+++ b/src/mongo/db/client.cpp
@@ -56,16 +56,6 @@ namespace {
thread_local ServiceContext::UniqueClient currentClient;
} // namespace
-void Client::initThreadIfNotAlready(StringData desc) {
- if (currentClient)
- return;
- initThread(desc);
-}
-
-void Client::initThreadIfNotAlready() {
- initThreadIfNotAlready(getThreadName());
-}
-
void Client::initThread(StringData desc, transport::SessionHandle session) {
initThread(desc, getGlobalServiceContext(), std::move(session));
}