[SERVER-32227] Make comment on ReplicaSetMonitor::get match how the function works Created: 08/Dec/17  Updated: 30/Oct/23  Resolved: 21/Oct/21

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 5.2.0

Type: Improvement Priority: Major - P3
Reporter: Dianna Hohensee (Inactive) Assignee: Sophia Tan
Resolution: Fixed Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Server Serverless 2021-10-25
Participants:

 Description   

The function comment discusses behavior based on a parameter 'createFromSeed' that no longer exists.

    /**
     * gets a cached Monitor per name. If the monitor is not found and createFromSeed is false,
     * it will return none. If createFromSeed is true, it will try to look up the last known
     * servers list for this set and will create a new monitor using that as the seed list.
     */
    static std::shared_ptr<ReplicaSetMonitor> get(const std::string& name);



 Comments   
Comment by Githook User [ 21/Oct/21 ]

Author:

{'name': 'Sophia Tan', 'email': 'sophia_tll@hotmail.com', 'username': 'sophiatll'}

Message: SERVER-32227 Make comment on ReplicaSetMonitor::get match how the function works
Branch: master
https://github.com/mongodb/mongo/commit/be2c9110437973291614ba621ab24bdcdf271046

Generated at Thu Feb 08 04:29:37 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.