Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix crash in proxy cluster update #67

Open
wants to merge 2 commits into
base: unstable
Choose a base branch
from

Conversation

dacjames
Copy link

@dacjames dacjames commented Jun 2, 2020

Fixes #66

The problem appears to be that resetCluster does not null cluster->master_names, resulting in a double free when proxy cluster update is called twice.

Calling clusterGetMasterNames was not strictly necessary but it seemed like the right thing to do to ensure the cluster struct is fully recreated by the update.

domrod pushed a commit to domrod/redis-cluster-proxy that referenced this pull request Apr 3, 2022
domrod added a commit to domrod/redis-cluster-proxy that referenced this pull request Apr 3, 2022
* Apply merge request RedisLabs#98

From RedisLabs#98

* Apply Merge Request RedisLabs#82

From RedisLabs#82

* Apply Merge Request RedisLabs#67

From RedisLabs#67

* Set optimization in makefile to -O3

* Add a Dockerfile for tests and set a version

Co-authored-by: Dominique Rodrigues <dominique.rodrigues@paymium.com>
domrod added a commit to domrod/redis-cluster-proxy that referenced this pull request Apr 3, 2022
* Apply several pull requests from project (#1)

* Apply merge request RedisLabs#98

From RedisLabs#98

* Apply Merge Request RedisLabs#82

From RedisLabs#82

* Apply Merge Request RedisLabs#67

From RedisLabs#67

* Set optimization in makefile to -O3

* Add a Dockerfile for tests and set a version

Co-authored-by: Dominique Rodrigues <dominique.rodrigues@paymium.com>

* Forgotten file Dockerfile.tests added (#2)

Co-authored-by: Dominique Rodrigues <dominique.rodrigues@paymium.com>

Co-authored-by: Dominique Rodrigues <dominique.rodrigues@paymium.com>
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.

Crash from proxy cluster update
2 participants