[SERVER-69862] Moving out of forwarding reference in shardVersionRetry Created: 21/Sep/22  Updated: 29/Oct/23  Resolved: 05/Oct/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.2.0-rc0

Type: Bug Priority: Major - P3
Reporter: Andrew Witten (Inactive) Assignee: Andrew Witten (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

In this code we are moving out of a forwarding reference (callbackFn).  If we pass in an lvalue callable object here, then we are moving out of an lvalue reference, which is dangerous.  We should pass by value instead.



 Comments   
Comment by Githook User [ 22/Sep/22 ]

Author:

{'name': 'Andrew Witten', 'email': 'andrew.witten@mongodb.com', 'username': 'awitten1'}

Message: SERVER-69862 pass callable by value instead of reference
Branch: master
https://github.com/mongodb/mongo/commit/3db7b151c16be01dbd193bba58cd5f79011f0a38

Generated at Thu Feb 08 06:14:38 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.