(affectedRows int64, allAffectedRows []int64, rerr string)
| 306 | } |
| 307 | |
| 308 | func (o *ExecuteOptions) LogCommandResponse(affectedRows int64, allAffectedRows []int64, rerr string) { |
| 309 | if o == nil || o.CreateTaskRunLog == nil { |
| 310 | return |
| 311 | } |
| 312 | err := o.CreateTaskRunLog(time.Now(), &storepb.TaskRunLog{ |
| 313 | Type: storepb.TaskRunLog_COMMAND_RESPONSE, |
| 314 | CommandResponse: &storepb.TaskRunLog_CommandResponse{ |
| 315 | AffectedRows: affectedRows, |
| 316 | AllAffectedRows: allAffectedRows, |
| 317 | Error: rerr, |
| 318 | }, |
| 319 | }) |
| 320 | if err != nil { |
| 321 | slog.Warn("failed to log command response", log.BBError(err)) |
| 322 | } |
| 323 | } |
| 324 | |
| 325 | func (o *ExecuteOptions) LogGhostMigrationStart() { |
| 326 | if o == nil || o.CreateTaskRunLog == nil { |
no test coverage detected