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] Fix order of writes in ChainAdapter #21166

Merged
merged 1 commit into from
Jan 5, 2017

Conversation

nicolas-grekas
Copy link
Member

Q A
Branch? 3.1
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets -
License MIT
Doc PR -

This is of importance in race situations: writes should happen on less volatile backend first so that.

@@ -27,6 +27,7 @@
class ChainAdapter implements AdapterInterface
{
private $adapters = array();
private $adapterCount = array();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this initialised as an array?

@nicolas-grekas nicolas-grekas merged commit df552af into symfony:3.1 Jan 5, 2017
nicolas-grekas added a commit that referenced this pull request Jan 5, 2017
This PR was merged into the 3.1 branch.

Discussion
----------

[Cache] Fix order of writes in ChainAdapter

| Q             | A
| ------------- | ---
| Branch?       | 3.1
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

This is of importance in race situations: writes should happen on less volatile backend first so that.

Commits
-------

df552af [Cache] Fix order of writes in ChainAdapter
@nicolas-grekas nicolas-grekas deleted the cache-fix branch January 5, 2017 17:43
This was referenced Jan 12, 2017
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.

3 participants