diff options
author | Juan Gu <juan.gu@mongodb.com> | 2023-05-05 17:59:44 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-05-17 22:34:33 +0000 |
commit | 02bf3f55f88874bf397b42758c9cd36093633f9e (patch) | |
tree | 3964271e581d4b735252c2462e9a2bdf32df47f6 /src/mongo/db/catalog/multi_index_block.cpp | |
parent | 41c95363ac628dd0a89fb18c369b0fdef42496e2 (diff) | |
download | mongo-02bf3f55f88874bf397b42758c9cd36093633f9e.tar.gz |
SERVER-60173 Ban implicit capture of `this` via `[=]` in lambda expressions
Diffstat (limited to 'src/mongo/db/catalog/multi_index_block.cpp')
-rw-r--r-- | src/mongo/db/catalog/multi_index_block.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/catalog/multi_index_block.cpp b/src/mongo/db/catalog/multi_index_block.cpp index 5d72129db49..4c6d796c613 100644 --- a/src/mongo/db/catalog/multi_index_block.cpp +++ b/src/mongo/db/catalog/multi_index_block.cpp @@ -865,7 +865,7 @@ Status MultiIndexBlock::dumpInsertsFromBulk( collection, dupsAllowed, kYieldIterations, - [=](const KeyString::Value& duplicateKey) { + [=, this](const KeyString::Value& duplicateKey) { // Do not record duplicates when explicitly ignored. This may be the case on // secondaries. return writeConflictRetry( @@ -1226,7 +1226,7 @@ Status MultiIndexBlock::_failPointHangDuringBuild(OperationContext* opCtx, unsigned long long iteration) const { try { fp->executeIf( - [=, &doc](const BSONObj& data) { + [=, this, &doc](const BSONObj& data) { LOGV2(20386, "Hanging index build during collection scan phase", "where"_attr = where, |