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

[Cache] Always select database for persistent redis connections #54579

Merged
merged 1 commit into from
Apr 12, 2024

Conversation

uncaught
Copy link
Contributor

Q A
Branch? 5.4
Bug fix? yes
New feature? no
Deprecations? no
Issues Fix #51578
License MIT

Even though the dbindex is supposed to be 0 by default for any new redis connection, when dealing with a persistent connection pool, due to a bug in phpreds you can actually end up on a different database.

This PR will call select even for a dbindex of 0 under these conditions to assure you are actually on the right database.

@carsonbot carsonbot added this to the 5.4 milestone Apr 12, 2024
@carsonbot carsonbot changed the title bug #51578 [Cache] always select database for persistent redis connections [Cache] bug #51578 always select database for persistent redis connections Apr 12, 2024
@nicolas-grekas nicolas-grekas changed the title [Cache] bug #51578 always select database for persistent redis connections [Cache] Always select database for persistent redis connections Apr 12, 2024
@nicolas-grekas
Copy link
Member

Thank you @uncaught.

@nicolas-grekas nicolas-grekas merged commit 21026a1 into symfony:5.4 Apr 12, 2024
5 of 8 checks passed
@uncaught uncaught deleted the 5.4 branch April 12, 2024 11:38
This was referenced Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants