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