Repository navigation
Fix ziplist length updates on bigendian platforms - #2080
Conversation
|
ping @oranagra, This is indeed a bug. |
oranagra
left a comment
There was a problem hiding this comment.
WOW.. this was sitting in plain sight (two adjacent lines) for so many years.
i guess no one is using bigendian.. or at least not with any of the non-string data types that use ziplists.
|
actually, the implications on bigendian platforms are just that the ziplist length will be broken. i suppose many (not all) hash and zset commands will still work correctly, and i think list type commands will not be affected at all.. |
|
Looking at the code, I think it would be nicer to make this fix so that I know this is just a cleanup so we can scrap this idea, but it's an easy fix, wdyt? |
|
we're gonna scrap ziplist.c soon, so i don't care much about making it pretty or safe for future changes. |
Adds call to intrev16ifbe to ensure ZIPLIST_LENGTH is compared correctly (cherry picked from commit eaa5271)
Adds call to intrev16ifbe to ensure ZIPLIST_LENGTH is compared correctly (cherry picked from commit eaa5271)
Adds call to intrev16ifbe to ensure ZIPLIST_LENGTH is compared correctly
Adds call to intrev16ifbe to ensure ZIPLIST_LENGTH is compared correctly