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

Method GetCheckpointTableName

go/base/context.go:418–424  ·  view source on GitHub ↗

GetCheckpointTableName generates the name of checkpoint table.

()

Source from the content-addressed store, hash-verified

416
417// GetCheckpointTableName generates the name of checkpoint table.
418func (mctx *MigrationContext) GetCheckpointTableName() string {
419 if mctx.ForceTmpTableName != "" {
420 return getSafeTableName(mctx.ForceTmpTableName, "ghk")
421 } else {
422 return getSafeTableName(mctx.OriginalTableName, "ghk")
423 }
424}
425
426// GetVoluntaryLockName returns a name of a voluntary lock to be used throughout
427// the swap-tables process.

Callers 5

finalCleanupMethod · 0.80
prepareQueriesMethod · 0.80
CreateCheckpointTableMethod · 0.80
DropCheckpointTableMethod · 0.80
ReadLastCheckpointMethod · 0.80

Calls 1

getSafeTableNameFunction · 0.85

Tested by

no test coverage detected