diff options
Diffstat (limited to 'src/mongo/db/s')
7 files changed, 7 insertions, 7 deletions
diff --git a/src/mongo/db/s/config/set_cluster_parameter_coordinator.h b/src/mongo/db/s/config/set_cluster_parameter_coordinator.h index 13d6c755bb5..aa821ed92d8 100644 --- a/src/mongo/db/s/config/set_cluster_parameter_coordinator.h +++ b/src/mongo/db/s/config/set_cluster_parameter_coordinator.h @@ -79,7 +79,7 @@ private: template <typename Func> auto _buildPhaseHandler(const Phase& newPhase, Func&& handlerFn) { - return [=] { + return [=, this] { const auto& currPhase = _doc.getPhase(); if (currPhase > newPhase) { diff --git a/src/mongo/db/s/config/set_user_write_block_mode_coordinator.h b/src/mongo/db/s/config/set_user_write_block_mode_coordinator.h index d30bb66e471..23dbd874e72 100644 --- a/src/mongo/db/s/config/set_user_write_block_mode_coordinator.h +++ b/src/mongo/db/s/config/set_user_write_block_mode_coordinator.h @@ -63,7 +63,7 @@ private: template <typename Func> auto _buildPhaseHandler(const Phase& newPhase, Func&& handlerFn) { - return [=] { + return [=, this] { const auto& currPhase = _doc.getPhase(); if (currPhase > newPhase) { diff --git a/src/mongo/db/s/metrics/sharding_data_transform_metrics_test_fixture.h b/src/mongo/db/s/metrics/sharding_data_transform_metrics_test_fixture.h index 73a6fa3fe9f..2858cf3d519 100644 --- a/src/mongo/db/s/metrics/sharding_data_transform_metrics_test_fixture.h +++ b/src/mongo/db/s/metrics/sharding_data_transform_metrics_test_fixture.h @@ -359,7 +359,7 @@ protected: : kNoSpecialBehavior; auto& done = threadPFs[i].promise; threads.emplace_back( - [=, &storage, specialBehavior = std::move(specialBehavior), &done] { + [=, this, &storage, specialBehavior = std::move(specialBehavior), &done] { performRandomOperations( storage, kIterations, kRemovalOdds, seed, specialBehavior); done.emplaceValue(); diff --git a/src/mongo/db/s/rename_collection_participant_service.h b/src/mongo/db/s/rename_collection_participant_service.h index 041bc31df58..920c4bdcc96 100644 --- a/src/mongo/db/s/rename_collection_participant_service.h +++ b/src/mongo/db/s/rename_collection_participant_service.h @@ -153,7 +153,7 @@ private: template <typename Func> auto _buildPhaseHandler(const Phase& newPhase, Func&& handlerFn) { - return [=] { + return [=, this] { const auto& currPhase = _doc.getPhase(); if (currPhase > newPhase) { diff --git a/src/mongo/db/s/session_catalog_migration_destination.cpp b/src/mongo/db/s/session_catalog_migration_destination.cpp index 7a3ca5b75bd..9ea0a5021b7 100644 --- a/src/mongo/db/s/session_catalog_migration_destination.cpp +++ b/src/mongo/db/s/session_catalog_migration_destination.cpp @@ -217,7 +217,7 @@ void SessionCatalogMigrationDestination::start(ServiceContext* service) { _state = State::Migrating; } - _thread = stdx::thread([=] { + _thread = stdx::thread([=, this] { try { _retrieveSessionStateFromSource(service); } catch (const DBException& ex) { diff --git a/src/mongo/db/s/shard_server_catalog_cache_loader.cpp b/src/mongo/db/s/shard_server_catalog_cache_loader.cpp index c3f0ad9d603..5f79e3f35b9 100644 --- a/src/mongo/db/s/shard_server_catalog_cache_loader.cpp +++ b/src/mongo/db/s/shard_server_catalog_cache_loader.cpp @@ -453,7 +453,7 @@ SemiFuture<CollectionAndChangedChunks> ShardServerCatalogCacheLoader::getChunksS }(); return ExecutorFuture<void>(_executor) - .then([=]() { + .then([=, this]() { ThreadClient tc("ShardServerCatalogCacheLoader::getChunksSince", getGlobalServiceContext()); auto context = _contexts.makeOperationContext(*tc); diff --git a/src/mongo/db/s/sharding_ddl_coordinator.h b/src/mongo/db/s/sharding_ddl_coordinator.h index db0827d1142..722388c00ed 100644 --- a/src/mongo/db/s/sharding_ddl_coordinator.h +++ b/src/mongo/db/s/sharding_ddl_coordinator.h @@ -277,7 +277,7 @@ protected: template <typename Func> auto _buildPhaseHandler(const Phase& newPhase, Func&& handlerFn) { - return [=] { + return [=, this] { const auto& currPhase = _doc.getPhase(); if (currPhase > newPhase) { |