diff options
Diffstat (limited to 'src/mongo/db/client_strand.h')
| -rw-r--r-- | src/mongo/db/client_strand.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/client_strand.h b/src/mongo/db/client_strand.h index 334e29a7c15..cab3140671d 100644 --- a/src/mongo/db/client_strand.h +++ b/src/mongo/db/client_strand.h @@ -133,7 +133,7 @@ public: ClientStrand(ServiceContext::UniqueClient client) : _clientPtr(client.get()), _client(std::move(client)), - _threadName(ThreadNameRef{_client->desc()}) {} + _threadName(make_intrusive<ThreadName>(_client->desc())) {} /** * Get a pointer to the underlying Client. @@ -204,8 +204,8 @@ private: ServiceContext::UniqueClient _client; - ThreadNameRef _threadName; - ThreadNameRef _oldThreadName; + boost::intrusive_ptr<ThreadName> _threadName; + boost::intrusive_ptr<ThreadName> _oldThreadName; }; inline void ClientStrand::Executor::schedule(Task task) { |
