MCPcopy Create free account
hub / github.com/nutsdb/nutsdb / isCommitting

Method isCommitting

tx.go:650–653  ·  view source on GitHub ↗

isCommitting will check if the tx status is txStatusCommitting

()

Source from the content-addressed store, hash-verified

648
649// isCommitting will check if the tx status is txStatusCommitting
650func (tx *Tx) isCommitting() bool {
651 status := tx.status.Load().(int)
652 return status == txStatusCommitting
653}
654
655// isClosed will check if the tx status is txStatusClosed
656func (tx *Tx) isClosed() bool {

Callers 1

RollbackMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected