diff options
author | Mathias Stearn <mathias@10gen.com> | 2017-03-07 16:03:30 -0500 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2017-03-24 16:13:26 -0400 |
commit | 77f7e96fdccfdfb1313a1a2ac57ebab8ed0e8882 (patch) | |
tree | fc92545209a2d70826fdc949f8aeb4003944529a /src/mongo/db/client.h | |
parent | fd46b39bd957df28fa2273bf5e4dcbb1765e4026 (diff) | |
download | mongo-77f7e96fdccfdfb1313a1a2ac57ebab8ed0e8882.tar.gz |
SERVER-27727 Make threadName a native thread_local so debuggers can get to it
Diffstat (limited to 'src/mongo/db/client.h')
-rw-r--r-- | src/mongo/db/client.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/client.h b/src/mongo/db/client.h index 32d8de0fc04..e37dd6d7afa 100644 --- a/src/mongo/db/client.h +++ b/src/mongo/db/client.h @@ -71,8 +71,8 @@ public: * * If provided, session's ref count will be bumped by this Client. */ - static void initThread(const char* desc, transport::SessionHandle session = nullptr); - static void initThread(const char* desc, + static void initThread(StringData desc, transport::SessionHandle session = nullptr); + static void initThread(StringData desc, ServiceContext* serviceContext, transport::SessionHandle session); @@ -116,7 +116,7 @@ public: * Inits a thread if that thread has not already been init'd, setting the thread name to * "desc". */ - static void initThreadIfNotAlready(const char* desc); + static void initThreadIfNotAlready(StringData desc); /** * Inits a thread if that thread has not already been init'd, using the existing thread name |