-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Replication
TransactionParticipant::unstashTransactionResources accepts a std::string cmdName in order to print useful diagnostic messages, and alter behavior conditionally for commitTransaction. In order to achieve that behavior, callers must pass the right magic case-sensitive string (for example). The simplest change we could make here is to internally use CommandInvocation::get(opCtx) to remove the need to pass a magic string in. Additionally, it looks like some of the internal logic to skip ticke acquisition should be encoded as an accessor on the opCtx or some similar tracking structure.