[GODRIVER-2453] Mention that Session and Transaction types and functions are not goroutine safe in relevant documentation Created: 10/Jun/22  Updated: 09/Sep/22  Resolved: 24/Jun/22

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

Type: Improvement Priority: Unknown
Reporter: Matt Dale Assignee: Preston Vasquez
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to GODRIVER-2452 Data Race condition in sessionImpl.cl... Closed

 Description   

Types that implement the Session and SessionContext interfaces are not safe for use from multiple goroutines. However, the documentation on those interfaces and the functions that return them often lacks that important information. Mention that Session and SessionContext implementations are not goroutine-safe in the relevant documentation.

Relevant documentation:



 Comments   
Comment by Githook User [ 09/Sep/22 ]

Author:

{'name': 'Benjamin Rewis', 'email': '32186188+benjirewis@users.noreply.github.com', 'username': 'benjirewis'}

Message: GODRIVER-2453 Run make fmt with the latest Go version. #1065
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/b45406be1ab55b0bf7b0599a917a8521cf856071

Comment by Githook User [ 24/Jun/22 ]

Author:

{'name': 'Preston Vasquez', 'email': 'prestonvasquez@icloud.com', 'username': 'prestonvasquez'}

Message: GODRIVER-2453 extend session function comments with thread/fork warnings (#995)
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/65e972a0d58ff713ebdb774f599e163b2cf4f4cf

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