-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Cluster Scalability
-
Fully Compatible
-
ALL
-
v8.0
-
Cluster Scalability 2024-07-08
-
200
There is an invariant in GetMoreCmd that enforces that getMore in a transaction does not perform any writes. This invariant relies on opCtx->inMultiDocumentTransaction() to guard the check; however, there is a possibility that an operation context is in a multi-document transaction but does not have a TransactionParticipant (which is what we're using to count write operations). Specifically, the TransactionParticipant could have been stashed. In this case, we don't need to check this invariant.
Furthermore, this function getTransactionOperationsForTest() should be renamed since we're not just calling it for tests.