summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/rename_collection_participant_service.h
diff options
context:
space:
mode:
authorJuan Gu <juan.gu@mongodb.com>2023-05-05 17:59:44 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-05-17 22:34:33 +0000
commit02bf3f55f88874bf397b42758c9cd36093633f9e (patch)
tree3964271e581d4b735252c2462e9a2bdf32df47f6 /src/mongo/db/s/rename_collection_participant_service.h
parent41c95363ac628dd0a89fb18c369b0fdef42496e2 (diff)
downloadmongo-02bf3f55f88874bf397b42758c9cd36093633f9e.tar.gz
SERVER-60173 Ban implicit capture of `this` via `[=]` in lambda expressions
Diffstat (limited to 'src/mongo/db/s/rename_collection_participant_service.h')
-rw-r--r--src/mongo/db/s/rename_collection_participant_service.h2
1 files changed, 1 insertions, 1 deletions
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) {