Skip to content

Update Hiredis to use unique sds symbol names.#7661

Merged
oranagra merged 3 commits intoredis:unstablefrom
michael-grunder:hiredis-unique-sds-symbols
Aug 16, 2020
Merged

Update Hiredis to use unique sds symbol names.#7661
oranagra merged 3 commits intoredis:unstablefrom
michael-grunder:hiredis-unique-sds-symbols

Conversation

@michael-grunder
Copy link
Contributor

This commit updates Hiredis to use totally unique symbol names for its bundled copy of the SDS library.

See #7609 for a good discussion of why we need to do this as well as all of the different options considered.

I did my best to verify (manually and with some scripting) that Redis sentinel never directly interacts with Hiredis' sds strings, and that I didn't miss any functions to rename.

Tests seem good but let me know if you'd like any changes to the PR.

I plan on removing SDS from hiredis at which point we can clean up this fix.

00272d669 Rename sds calls so they don't conflict in Redis.

git-subtree-dir: deps/hiredis
git-subtree-split: 00272d669b11e96b8311d9bfe167c117f8887dd6
@oranagra oranagra merged commit 1407a05 into redis:unstable Aug 16, 2020
@oranagra
Copy link
Member

@michael-grunder thank you.

JackieXie168 pushed a commit to JackieXie168/redis that referenced this pull request Aug 21, 2020
…-symbols

This resolves an issue with sentinel that was created when hiredis was recently updated.
this was due to sds symbol names clashing, since hiredis now includes different implementation
of sdsrange than the one in redis.

The state of things is that redis-benchamrk and redis-cli include only hiredis sds implementation.
redis-cli even operates (calls sdscatlen) on sds that's allocated by hiredis.

Sentinel however has both implementations of the sds library in it (now each with it's own unique
symbols).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants