[GODRIVER-1302] Topology.String should take {{serversLock}} Created: 05/Sep/19  Updated: 28/Oct/23  Resolved: 23/Sep/19

Status: Closed
Project: Go Driver
Component/s: Core API
Affects Version/s: None
Fix Version/s: 1.1.2

Type: Bug Priority: Major - P3
Reporter: David Bartley Assignee: Isabella Siu (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

This was caught by running some of out tests with -race.

https://github.com/mongodb/mongo-go-driver/blob/v1.1.0/x/mongo/driver/topology/topology.go#L594.



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

Author:

{'username': 'bartle-stripe', 'email': 'bartle@stripe.com', 'name': 'David Bartley'}

Message: Lock `serversLock` in `Topology.String`.

GODRIVER-1302
Branch: release/1.1
https://github.com/mongodb/mongo-go-driver/commit/1e3091f3333ee0eebabd78d2ec0a1f227cbee80b

Comment by Githook User [ 23/Sep/19 ]

Author:

{'name': 'David Bartley', 'username': 'bartle-stripe', 'email': 'bartle@stripe.com'}

Message: Lock `serversLock` in `Topology.String`.

GODRIVER-1302
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/4ce0ae63789cc26fee16f3b52dae7aa1f2751131

Comment by David Bartley [ 17/Sep/19 ]

https://github.com/mongodb/mongo-go-driver/pull/176

Comment by David Bartley [ 12/Sep/19 ]

Would it be helpful for us to provide a patch to fix this, or is someone already working on this?

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