[SERVER-68731] Coverity analysis defect 128583: Using a moved object Created: 11/Aug/22  Updated: 29/Oct/23  Resolved: 27/Jan/23

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

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Alexander Ignatyev
Resolution: Fixed Votes: 0
Labels: coverity, quick-tech-debt
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Query Optimization
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

Using a moved object

Using a moved object may lead to an unexpected/undefined behavior. An object is used after it's moved.
/src/mongo/db/query/index_entry.h:170: USE_AFTER_MOVE 128583 "multikeyPathSet" is moved (indicated by "std::move(multikeyPathSet)").
/src/mongo/db/query/index_entry.h:174: USE_AFTER_MOVE 128583 "multikeyPathSet" is used after it has been already moved.



 Comments   
Comment by Githook User [ 27/Jan/23 ]

Author:

{'name': 'Alexander Ignatyev', 'email': 'alexander.ignatyev@mongodb.com', 'username': 'aligusnet'}

Message: SERVER-68731 use this to clarify for coverity that the members of the class are checked, not arguments
Branch: master
https://github.com/mongodb/mongo/commit/59b56ea7485c16444c9c8331e7d67d6547cf2f06

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