Details
Description
The scopeGuard in runWithTransactionsFromOpCtx() needs to check if the transaction is in progress before aborting it. Otherwise it can cause an issue where an already committed transaction is aborted. See BF-29758 for the full explanation.