Get current transaction status.
()
| 202 | |
| 203 | // Get current transaction status. |
| 204 | func (t *transactionManager) currentTxnStatus() ProducerTxnStatusFlag { |
| 205 | t.statusLock.RLock() |
| 206 | defer t.statusLock.RUnlock() |
| 207 | |
| 208 | return t.status |
| 209 | } |
| 210 | |
| 211 | // Try to transition to a valid status and return an error otherwise. |
| 212 | func (t *transactionManager) transitionTo(target ProducerTxnStatusFlag, err error) error { |
no outgoing calls