(ctx context.Context, id api.CmdID, cmd api.Cmd)
| 385 | } |
| 386 | |
| 387 | func (w *adapter) MutateAndWrite(ctx context.Context, id api.CmdID, cmd api.Cmd) { |
| 388 | w.builder.BeginCommand(uint64(id), cmd.Thread()) |
| 389 | if err := cmd.Mutate(ctx, id, w.state, w.builder, nil); err == nil { |
| 390 | w.builder.CommitCommand() |
| 391 | } else { |
| 392 | w.builder.RevertCommand(err) |
| 393 | log.W(ctx, "Failed to write command %v %v for replay: %v", id, cmd, err) |
| 394 | } |
| 395 | } |
nothing calls this directly
no test coverage detected