sds icon indicating copy to clipboard operation
sds copied to clipboard

sdscatfmt call sdsMakeRoomFor, asked for more space than intended

Open huangzhw opened this issue 4 years ago • 0 comments

instead of asking for the extra new space it wanted, it asked to grow the string by the size it already has too. i.e. a string of 1000 bytes, needing to grow by 10 bytes, would have been asking for an additional 1010 bytes. As in https://github.com/redis/redis/pull/8286.

huangzhw avatar Jan 18 '21 00:01 huangzhw