-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Replication
-
None
-
Fully Compatible
-
v4.2
-
Repl 2019-07-01, Repl 2019-07-15, Repl 2019-07-29, Repl 2019-08-12
-
12
There are multiple ways of checking if an opCtx is in a multi-document transaction. They're each slightly different in practice and we use them somewhat interchangeably. We should clarify the semantic differences between these three, make sure that any place that uses one is using the correct one, and make it clearer what to do in the future.
Ways to check:
- inMultiDocumentTransaction
- seeing if the opCtx has a top level WUOW
- checking if the read concern on the opCtx is "snapshot"
- is depended on by
-
SERVER-41359 Stop upconverting readConcern to snapshot internally for transactions
- Closed
- is related to
-
SERVER-39627 Audit uses of TransactionParticipant::SideTransactionBlock
- Closed
-
SERVER-42750 OperationContext::inMultiDocumentTransaction() doesn't return true when applying operations for prepared transaction during recovery
- Closed