[SERVER-58197] Pass ranges by reference when constructing a Sorter from existing ranges Created: 01/Jul/21  Updated: 29/Oct/23  Resolved: 01/Jul/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.0.2, 5.1.0-rc0

Type: Improvement Priority: Minor - P4
Reporter: Gregory Noma Assignee: Gregory Noma
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
related to SERVER-49408 adjust startup to resume index build ... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v5.0
Sprint: Execution Team 2021-07-12
Participants:

 Description   

When constructing Sorter from existing ranges, currently the vector of ranges is passed around by value. This appears to be an oversight and they should be passed by reference instead.



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 21/Jul/21 ]

Author:

{'name': 'Gregory Noma', 'email': 'gregory.noma@gmail.com', 'username': 'gregorynoma'}

Message: SERVER-58197 Pass ranges by reference when constructing a Sorter from existing ranges

(cherry picked from commit 4d89fd246c6cb9e4717cb9dc6f9fcea1ad1c869e)
Branch: v5.0
https://github.com/mongodb/mongo/commit/6dcb74e3990a9e39c40217437aebdf50264a119b

Comment by Githook User [ 01/Jul/21 ]

Author:

{'name': 'Gregory Noma', 'email': 'gregory.noma@gmail.com', 'username': 'gregorynoma'}

Message: SERVER-58197 Pass ranges by reference when constructing a Sorter from existing ranges
Branch: master
https://github.com/mongodb/mongo/commit/4d89fd246c6cb9e4717cb9dc6f9fcea1ad1c869e

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