[SERVER-45281] Reduce danger of MatchExpression::getChildVector() or remove it Created: 20/Dec/19  Updated: 29/Oct/23  Resolved: 23/Dec/19

Status: Closed
Project: Core Server
Component/s: Internal Code, Querying
Affects Version/s: None
Fix Version/s: 4.3.3

Type: Task Priority: Major - P3
Reporter: Charlie Swanson Assignee: Jacob Evans
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-45177 Not-equal ($ne) in query for mapReduc... Closed
Backwards Compatibility: Fully Compatible
Sprint: Query 2019-12-30
Participants:

 Description   

As detailed in SERVER-45177, this API is dangerous to use and overlaps in functionality with MatchExpression::getChild(size_t). We should investigate why this method was added and whether we should audit all implementations to make sure they don't return nullptr like MatchExpressionNot, or we should remove it and replace usages with getChild()



 Comments   
Comment by Githook User [ 23/Dec/19 ]

Author:

{'name': 'Jacob Evans', 'email': 'jacob.evans@mongodb.com'}

Message: SERVER-45281 Reduce danger of MatchExpression::getChildVector()
Branch: master
https://github.com/mongodb/mongo/commit/fed9387f2ee2745e2c25b8f94e3c337778770af2

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