MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / commitHandler

Method commitHandler

xenomint/state.go:657–666  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

655}
656
657func (s *State) commitHandler() {
658 if tx, ok := s.handler.(sqlTransaction); ok {
659 if err := tx.Commit(); err != nil {
660 log.WithError(err).Fatal("failed to commit")
661 }
662 }
663 // reset schema change flag
664 atomic.StoreUint32(&s.hasSchemaChange, 0)
665 atomic.StoreUint64(&s.lastCommitPoint, s.getSeq())
666}
667
668func (s *State) rollbackHandler() {
669 if tx, ok := s.handler.(sqlTransaction); ok {

Callers 2

CloseMethod · 0.95
flushHandlerMethod · 0.95

Calls 4

getSeqMethod · 0.95
WithErrorFunction · 0.92
FatalMethod · 0.80
CommitMethod · 0.65

Tested by

no test coverage detected