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

Method rollbackHandler

xenomint/state.go:668–676  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

666}
667
668func (s *State) rollbackHandler() {
669 if tx, ok := s.handler.(sqlTransaction); ok {
670 if err := tx.Rollback(); err != nil {
671 log.WithError(err).Fatal("failed to rollback")
672 }
673 }
674 // reset schema change flag
675 atomic.StoreUint32(&s.hasSchemaChange, 0)
676}
677
678func (s *State) getLocalTime() time.Time {
679 return time.Now().UTC()

Callers 1

CloseMethod · 0.95

Calls 3

WithErrorFunction · 0.92
FatalMethod · 0.80
RollbackMethod · 0.65

Tested by

no test coverage detected