MCPcopy
hub / github.com/github/gh-ost / GetContext

Method GetContext

go/base/context.go:1006–1008  ·  view source on GitHub ↗

GetContext returns the migration context for cancellation checking

()

Source from the content-addressed store, hash-verified

1004
1005// GetContext returns the migration context for cancellation checking
1006func (mctx *MigrationContext) GetContext() context.Context {
1007 return mctx.ctx
1008}
1009
1010// SetAbortError stores the fatal error that triggered abort
1011// Only the first error is stored (subsequent errors are ignored)

Callers 15

mainFunction · 0.95
TestAbort_AfterRowCopyFunction · 0.95
TestRevert_AbortsOnErrorFunction · 0.95
applyServerCommandMethod · 0.80
retryOperationMethod · 0.80
onChangelogStateEventMethod · 0.80

Calls

no outgoing calls

Tested by 6

TestAbort_AfterRowCopyFunction · 0.76
TestRevert_AbortsOnErrorFunction · 0.76