[GODRIVER-1386] Fix data race in topology/resource_pool_test Created: 01/Nov/19  Updated: 28/Oct/23  Resolved: 26/Nov/19

Status: Closed
Project: Go Driver
Component/s: Testing
Affects Version/s: None
Fix Version/s: 1.2.0

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


 Description   

int32s in an expiredCounter should be retrieved with atomic.LoadInt32



 Comments   
Comment by Githook User [ 26/Nov/19 ]

Author:

{'email': 'divjot.arora@10gen.com', 'name': 'Divjot Arora', 'username': 'divjotarora'}

Message: GODRIVER-1386 Use atomic.LoadInt32 in resource pool tests (#234)
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/3759e9ff7e042f872f437be12b0635592ceac12d

Comment by Divjot Arora (Inactive) [ 25/Nov/19 ]

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

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