MCPcopy
hub / github.com/apache/casbin / IsCommitted

Method IsCommitted

transaction_commit.go:246–250  ·  view source on GitHub ↗

IsCommitted returns true if the transaction has been committed.

()

Source from the content-addressed store, hash-verified

244
245// IsCommitted returns true if the transaction has been committed.
246func (tx *Transaction) IsCommitted() bool {
247 tx.mutex.RLock()
248 defer tx.mutex.RUnlock()
249 return tx.committed
250}
251
252// IsRolledBack returns true if the transaction has been rolled back.
253func (tx *Transaction) IsRolledBack() bool {

Callers 3

TestTransactionConflictsFunction · 0.80

Calls

no outgoing calls

Tested by 3

TestTransactionConflictsFunction · 0.64