redis
redis copied to clipboard
fix the size of variable merge_sz in quicklist.c
11 was the size of header/trailer in the old structure Ziplist, but now the size of header/trailer in the new structure Listpack should be 7.
Good catch, thx.
thanks. ideally we would have an API or a define in listpack.h to expose these, but not sure it worth the trouble at this point, and the hard coded value was already present. hopefully with the improved comment we would be able to catch it faster next time 8-)
FYI, that (rebase) merge wasn't needed. i was waiting for the CI tests of the original commit to finish, and then got destructed. thanks for catching this..