[SERVER-51441] Get rid of ReplicaSetMonitor::get() Created: 08/Oct/20  Updated: 10/Oct/20  Resolved: 10/Oct/20

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

Type: Task Priority: Major - P3
Reporter: Andrew Shuvalov (Inactive) Assignee: Andrew Shuvalov (Inactive)
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-51440 Cleanup refcounting and lifetime of R... Closed
Participants:

 Description   

As the ReplicaSetMonitor is behaving like cache, it is not guaranteed that the ReplicaSetMonitor::get() returns an existing instance, which could be garbage collected. We need to always create a new instance in the cache when there is none.

See https://jira.mongodb.org/browse/SERVER-51440 for details.



 Comments   
Comment by Andrew Shuvalov (Inactive) [ 10/Oct/20 ]

Hopefully we don't need this

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