MCPcopy Index your code
hub / github.com/github/gh-ost / SetAbortError

Method SetAbortError

go/base/context.go:1012–1018  ·  view source on GitHub ↗

SetAbortError stores the fatal error that triggered abort Only the first error is stored (subsequent errors are ignored)

(err error)

Source from the content-addressed store, hash-verified

1010// SetAbortError stores the fatal error that triggered abort
1011// Only the first error is stored (subsequent errors are ignored)
1012func (mctx *MigrationContext) SetAbortError(err error) {
1013 mctx.abortMutex.Lock()
1014 defer mctx.abortMutex.Unlock()
1015 if mctx.AbortError == nil {
1016 mctx.AbortError = err
1017 }
1018}
1019
1020// GetAbortError retrieves the stored abort error
1021func (mctx *MigrationContext) GetAbortError() error {

Callers 4

abortMethod · 0.80

Calls

no outgoing calls