[SERVER-54341] Must not capture locals by reference in asynchronous lambda (exhaust_cursor_currentop_integration_test.cpp) Created: 05/Feb/21  Updated: 29/Oct/23  Resolved: 08/Feb/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.9.0

Type: Bug Priority: Major - P3
Reporter: Matthew Russotto Assignee: Matthew Russotto
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Repl 2021-02-08, Repl 2021-02-22
Participants:
Linked BF Score: 10

 Description   

The asynchronous lambda in startExhaustQuery may still be running on method exit, so it cannot rely on references to local variables



 Comments   
Comment by Githook User [ 08/Feb/21 ]

Author:

{'name': 'Matthew Russotto', 'email': 'matthew.russotto@mongodb.com', 'username': 'mtrussotto'}

Message: SERVER-54341 Must not capture locals by reference in asynchronous lambda (exhaust_cursor_currentop_integration_test.cpp)
Branch: master
https://github.com/mongodb/mongo/commit/7d63d668f001f63672905e8d5f63275c09ba84cd

Generated at Thu Feb 08 05:33:16 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.