MCPcopy Index your code
hub / github.com/apache/casbin / IsRolledBack

Method IsRolledBack

transaction_commit.go:253–257  ·  view source on GitHub ↗

IsRolledBack returns true if the transaction has been rolled back.

()

Source from the content-addressed store, hash-verified

251
252// IsRolledBack returns true if the transaction has been rolled back.
253func (tx *Transaction) IsRolledBack() bool {
254 tx.mutex.RLock()
255 defer tx.mutex.RUnlock()
256 return tx.rolledBack
257}
258
259// IsActive returns true if the transaction is still active (not committed or rolled back).
260func (tx *Transaction) IsActive() bool {

Callers 2

TestTransactionRollbackFunction · 0.80
TestTransactionConflictsFunction · 0.80

Calls

no outgoing calls

Tested by 2

TestTransactionRollbackFunction · 0.64
TestTransactionConflictsFunction · 0.64