GODRIVER-3259ClosedDuplicate

Expose method on the mongo session to determine if it is being run within a transaction

h3. *Context* {color:#172b4d}We have pieces of code that take in a mongo.SessionContext and are to be run within a mongo transaction. The only real way to determine that today is to call StartTransaction() and check for an ErrTransactionInProgress, which is part of the /x/ package and not a stable API. {color} Wanted to propose expose a method as part of the stable API for identifying whether a mongo.SessionContext is running within a transaction or not.  h3. *Definition of done* {colo

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix

No fix available yet.

Components
Server components related to this issue

No components specified.

Labels
Tags and classification
go-was-2.2.0