[SERVER-85367] Remove traverse_F calls in type checker if the argument is not an array Created: 18/Jan/24  Updated: 26/Jan/24  Resolved: 25/Jan/24

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

Type: Task Priority: Major - P3
Reporter: Alberto Massari Assignee: Alberto Massari
Resolution: Fixed Votes: 0
Labels: auto-reverted
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Problem/Incident
Backwards Compatibility: Fully Compatible
Sprint: QE 2024-01-22, QE 2024-02-05
Participants:
Linked BF Score: 35

 Description   

When we have an expression

traverseF(s9, lambda(l101.0) { ((move(l101.0) <= s13) ?: false) }, false)

where the s9 argument is typed as not being an array value, the code is equivalent to directly invoke the lambda, so we can remove it from the code



 Comments   
Comment by Githook User [ 25/Jan/24 ]

Author:

{'name': 'Alberto Massari', 'email': 'alberto.massari@mongodb.com', 'username': 'albymassari'}

Message: SERVER-85367 Simplify traverseF/P() when working on non-arrays (#18343)

GitOrigin-RevId: af8bc4379386f832db004a4a63e88e3d316ed4cb
Branch: master
https://github.com/mongodb/mongo/commit/9fbe71ee8fe14405b8f4a7cda448ab8b392a7d49

Comment by Githook User [ 24/Jan/24 ]

Author:

{'name': 'auto-revert-processor', 'email': 'dev-prod-dag@mongodb.com', 'username': ''}

Message: Revert "SERVER-85367 Simplify traverseF/P() when working on non-arrays (#18218)"

This reverts commit 55d3e987c5e04d17ba341643d87c75aea5f9fc83.

GitOrigin-RevId: 0201ecc4026aae6048609a1fdff5305cbbd7c136
Branch: master
https://github.com/mongodb/mongo/commit/48bdd9ebb92782f17eb72007273b30741757699d

Comment by Githook User [ 23/Jan/24 ]

Author:

{'name': 'Alberto Massari', 'email': 'alberto.massari@mongodb.com', 'username': 'albymassari'}

Message: SERVER-85367 Simplify traverseF/P() when working on non-arrays (#18218)

GitOrigin-RevId: 55d3e987c5e04d17ba341643d87c75aea5f9fc83
Branch: master
https://github.com/mongodb/mongo/commit/e7aa6e6ba570169432712ae34bbc3781bb4ccea0

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