diff --git a/go/vt/vttablet/tabletmanager/vreplication/replicator_plan.go b/go/vt/vttablet/tabletmanager/vreplication/replicator_plan.go index ec9de26d7e6..a201ce25847 100644 --- a/go/vt/vttablet/tabletmanager/vreplication/replicator_plan.go +++ b/go/vt/vttablet/tabletmanager/vreplication/replicator_plan.go @@ -505,7 +505,7 @@ func (tp *TablePlan) applyChange(rowChange *binlogdatapb.RowChange, executor fun diff := afterVals[i].RawStr() beforeVal := bindvars["b_"+field.Name].Value buf := bytes.Buffer{} - buf.Grow(len(diff) + len(beforeVal) + len(sqlparser.Utf8mb4Str) + 2) // +2 is for the enclosing quotes + buf.Grow(len(beforeVal) + len(sqlparser.Utf8mb4Str) + 2) // +2 is for the enclosing quotes buf.WriteString(sqlparser.Utf8mb4Str) buf.WriteByte('\'') buf.Write(beforeVal)