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

Method SetCountTableRowsCancelFunc

go/base/context.go:525–530  ·  view source on GitHub ↗

SetCountTableRowsCancelFunc sets the cancel function for the CountTableRows query context

(f func())

Source from the content-addressed store, hash-verified

523
524// SetCountTableRowsCancelFunc sets the cancel function for the CountTableRows query context
525func (mctx *MigrationContext) SetCountTableRowsCancelFunc(f func()) {
526 mctx.countMutex.Lock()
527 defer mctx.countMutex.Unlock()
528
529 mctx.countTableRowsCancelFunc = f
530}
531
532// IsCountingTableRows returns true if the migration has a table count query running
533func (mctx *MigrationContext) IsCountingTableRows() bool {

Callers 2

CountTableRowsMethod · 0.80
countTableRowsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected