When I read the souce code of the newest version (unstable), I was conflused with the implementation of the function __ziplistInsert in ziplist.c . I doubt that the line 596 :
memmove(p+reqlen,p-nextdiff,curlen-offset-1+nextdiff);
should be changed to
memmove(p+reqlen,p,curlen-offset-1+nextdiff);
because p is the pointer which points to the entry, if nextdiff != 0, memmove will break the previous entry.
Thanks !
Comment From: 1eeBoom
hello,why this issue is closed? I have the same question about it. can you deal with my doubt? Thanks.
Comment From: liqinliang
the same quest? please tell me why ? thks!!!!