SetAbortError stores the fatal error that triggered abort Only the first error is stored (subsequent errors are ignored)
(err error)
| 1010 | // SetAbortError stores the fatal error that triggered abort |
| 1011 | // Only the first error is stored (subsequent errors are ignored) |
| 1012 | func (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 |
| 1021 | func (mctx *MigrationContext) GetAbortError() error { |
no outgoing calls