MCPcopy
hub / github.com/IBM/sarama / currentTxnStatus

Method currentTxnStatus

transaction_manager.go:204–209  ·  view source on GitHub ↗

Get current transaction status.

()

Source from the content-addressed store, hash-verified

202
203// Get current transaction status.
204func (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.
212func (t *transactionManager) transitionTo(target ProducerTxnStatusFlag, err error) error {

Callers 8

addOffsetsToTxnMethod · 0.95
finishTransactionMethod · 0.95
publishTxnPartitionsMethod · 0.95
TestEndTxnFunction · 0.80
TxnStatusMethod · 0.80
dispatcherMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestEndTxnFunction · 0.64