diff options
author | Gregory Wlodarek <gregory.wlodarek@mongodb.com> | 2018-11-14 12:27:43 -0500 |
---|---|---|
committer | Gregory Wlodarek <gregory.wlodarek@mongodb.com> | 2018-11-16 08:44:45 -0500 |
commit | 4faca08a32b89c399785e3de0bf6f928482d83f3 (patch) | |
tree | 70f5605f90d84e732dd3225c71b9382882ec135c /src/mongo/db/s/metadata_manager.cpp | |
parent | 6d4e557f6959dc326cd49249517fa6254b4bb0f8 (diff) | |
download | mongo-4faca08a32b89c399785e3de0bf6f928482d83f3.tar.gz |
SERVER-37893 Remove Client::initThreadIfNotAlready in favor of using the Client RAII helper
Diffstat (limited to 'src/mongo/db/s/metadata_manager.cpp')
-rw-r--r-- | src/mongo/db/s/metadata_manager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/s/metadata_manager.cpp b/src/mongo/db/s/metadata_manager.cpp index a64fbfd4540..dba29139999 100644 --- a/src/mongo/db/s/metadata_manager.cpp +++ b/src/mongo/db/s/metadata_manager.cpp @@ -145,7 +145,7 @@ void scheduleCleanup(executor::TaskExecutor* executor, LOG(1) << "Scheduling cleanup on " << nss.ns() << " at " << when; auto swCallbackHandle = executor->scheduleWorkAt( when, [ executor, nss = std::move(nss), epoch = std::move(epoch) ](auto&) { - Client::initThreadIfNotAlready("Collection Range Deleter"); + ThreadClient tc("Collection Range Deleter", getGlobalServiceContext()); auto uniqueOpCtx = Client::getCurrent()->makeOperationContext(); auto opCtx = uniqueOpCtx.get(); |