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

Function newTestMigrationContext

go/logic/test_utils.go:59–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57}
58
59func newTestMigrationContext() *base.MigrationContext {
60 migrationContext := base.NewMigrationContext()
61 migrationContext.ReplicaServerId = 99999
62 migrationContext.HeartbeatIntervalMilliseconds = 100
63 migrationContext.ThrottleHTTPIntervalMillis = 100
64 migrationContext.ThrottleHTTPTimeoutMillis = 1000
65 migrationContext.DatabaseName = testMysqlDatabase
66 migrationContext.OriginalTableName = testMysqlTableName
67 migrationContext.SkipPortValidation = true
68 migrationContext.PanicOnWarnings = true
69 migrationContext.AllowedRunningOnMaster = true
70
71 migrationContext.ServeSocketFile = filepath.Join(os.TempDir(), "gh-ost.sock")
72
73 return migrationContext
74}

Calls 1

NewMigrationContextFunction · 0.92

Used in the wild real call sites across dependent graphs

searching dependent graphs…