diff --git a/go/mysql/binlog/binlog_json.go b/go/mysql/binlog/binlog_json.go index 99845515823..e6b7d09819d 100644 --- a/go/mysql/binlog/binlog_json.go +++ b/go/mysql/binlog/binlog_json.go @@ -83,7 +83,7 @@ func ParseBinaryJSONDiff(data []byte) (sqltypes.Value, error) { // Reasonable estimate of the space we'll need to build the SQL // expression in order to try and avoid reallocations w/o // overallocating too much. - diff.Grow(int(float32(len(data)) * 1.25)) + diff.Grow(len(data) + 80) pos := 0 outer := false innerStr := ""