summaryrefslogtreecommitdiff
path: root/src/mongo/db/client.cpp
diff options
context:
space:
mode:
authorJonathan Reams <jbreams@mongodb.com>2018-01-17 15:02:27 -0500
committerJonathan Reams <jbreams@mongodb.com>2018-02-05 11:21:14 -0500
commit0a08faf1480282e8db11086050eac3f9e7aaa5be (patch)
treeb77d69a6f888cf02d997cb13cc459ac70399acce /src/mongo/db/client.cpp
parent755a5c48f174ce2d5090cba37339a0fdd4520f16 (diff)
downloadmongo-0a08faf1480282e8db11086050eac3f9e7aaa5be.tar.gz
SERVER-32498 Client should capture full thread name
Diffstat (limited to 'src/mongo/db/client.cpp')
-rw-r--r--src/mongo/db/client.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/mongo/db/client.cpp b/src/mongo/db/client.cpp
index 24f73349006..be6b76d427e 100644
--- a/src/mongo/db/client.cpp
+++ b/src/mongo/db/client.cpp
@@ -104,17 +104,12 @@ Client::Client(std::string desc, ServiceContext* serviceContext, transport::Sess
: _serviceContext(serviceContext),
_session(std::move(session)),
_desc(std::move(desc)),
- _threadId(stdx::this_thread::get_id()),
_connectionId(_session ? _session->id() : 0),
_prng(generateSeed(_desc)) {}
void Client::reportState(BSONObjBuilder& builder) {
builder.append("desc", desc());
- std::stringstream ss;
- ss << _threadId;
- builder.append("threadId", ss.str());
-
if (_connectionId) {
builder.appendNumber("connectionId", _connectionId);
}