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

Method BeginTxn

mocks/sync_producer.go:231–237  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

229}
230
231func (sp *SyncProducer) BeginTxn() error {
232 sp.txnLock.Lock()
233 defer sp.txnLock.Unlock()
234
235 sp.txnStatus = sarama.ProducerTxnFlagInTransaction
236 return nil
237}
238
239func (sp *SyncProducer) CommitTxn() error {
240 sp.txnLock.Lock()

Callers 1

TestSyncProducerUseTxnFunction · 0.95

Implementers 2

syncProducersync_producer.go
SyncProducermocks/sync_producer.go

Calls

no outgoing calls

Tested by 1

TestSyncProducerUseTxnFunction · 0.76