MCPcopy Index your code
hub / github.com/bytebase/bytebase / LogGhostMigrationStart

Method LogGhostMigrationStart

backend/plugin/db/driver.go:325–336  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

323}
324
325func (o *ExecuteOptions) LogGhostMigrationStart() {
326 if o == nil || o.CreateTaskRunLog == nil {
327 return
328 }
329 err := o.CreateTaskRunLog(time.Now(), &storepb.TaskRunLog{
330 Type: storepb.TaskRunLog_GHOST_MIGRATION_START,
331 GhostMigrationStart: &storepb.TaskRunLog_GhostMigrationStart{},
332 })
333 if err != nil {
334 slog.Warn("failed to log gh-ost migration start", log.BBError(err))
335 }
336}
337
338func (o *ExecuteOptions) LogGhostMigrationEnd(rerr string) {
339 if o == nil || o.CreateTaskRunLog == nil {

Callers 1

executeGhostMigrationFunction · 0.80

Calls 2

BBErrorFunction · 0.92
CreateTaskRunLogMethod · 0.80

Tested by

no test coverage detected