()
| 323 | } |
| 324 | |
| 325 | func (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 | |
| 338 | func (o *ExecuteOptions) LogGhostMigrationEnd(rerr string) { |
| 339 | if o == nil || o.CreateTaskRunLog == nil { |
no test coverage detected