Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Cache] Fix Predis client cluster with pipeline#23237

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:3.3fromflolivaud:fix/predisCluster
Jun 21, 2017

Conversation

@flolivaud
Copy link
Contributor

@flolivaudflolivaud commentedJun 20, 2017
edited
Loading

QA
Branch?3.3
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed ticketsn/a
LicenseMIT
Doc PRn/a

Copy link
Member

@nicolas-grekasnicolas-grekas left a comment

Choose a reason for hiding this comment

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

👍 with minor comments

$ids =array();

if ($this->redisinstanceof \Predis\Client) {
if ($this->redisinstanceof \Predis\Client && !($this->redis->getConnection()instanceof ClusterInterface)) {

Choose a reason for hiding this comment

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

No need for the parentheses.

}elseif ($this->redisinstanceof \RedisCluster) {
// phpredis doesn't support pipelining with RedisCluster
}elseif ($this->redisinstanceof \RedisCluster || (
$this->redisinstanceof \Predis\Client &&$this->redis->getConnection()instanceof ClusterInterface

Choose a reason for hiding this comment

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

Should be on one​ line.

@fabpot
Copy link
Member

@flolivaud Can you change the base to the lowest possible version?

@flolivaud
Copy link
ContributorAuthor

flolivaud commentedJun 20, 2017
edited
Loading

@fabpot Done

@flolivaudflolivaud changed the titleFix Predis client cluster with pipeline[Cache] Fix Predis client cluster with pipelineJun 20, 2017
@flolivaudflolivaud changed the base branch frommaster to3.2June 20, 2017 19:15
@keradus
Copy link
Member

when lowering the branch on gh interface, one needs to rebase the branch as well, as if not, he ends up with all commits from original base branch in his PR

@flolivaudflolivaud changed the base branch from3.2 to3.3June 21, 2017 06:50
@flolivaudflolivaud changed the base branch from3.3 tomasterJune 21, 2017 06:52
@flolivaudflolivaud changed the base branch frommaster to3.3June 21, 2017 06:53
@flolivaud
Copy link
ContributorAuthor

@keradus yes sorry, seems to be good ! /cc@fabpot

@keradus
Copy link
Member

all bugfixes deserve a test. please add one

@nicolas-grekas
Copy link
Member

Note that in this case, having a test might be complicated...

@flolivaud
Copy link
ContributorAuthor

flolivaud commentedJun 21, 2017
edited
Loading

Yes it is. I try to fix the test to connect in cluster mode but i don't know how to do more.

@flolivaudflolivaudforce-pushed thefix/predisCluster branch 3 times, most recently from69c12cc to81a9efcCompareJune 21, 2017 09:28
}elseif ($this->redisinstanceof \RedisCluster) {
// phpredis doesn't support pipelining with RedisCluster
}elseif ($this->redisinstanceof \RedisCluster || ($this->redisinstanceof \Predis\Client &&$this->redis->getConnection()instanceof ClusterInterface)) {
// phpredis& predisdoesn't support pipelining with RedisCluster

Choose a reason for hiding this comment

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

s/doesn't/don't

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Sorry. Done. :)

@fabpot
Copy link
Member

Thank you@flolivaud.

@fabpotfabpot merged commita85d5b0 intosymfony:3.3Jun 21, 2017
fabpot added a commit that referenced this pull requestJun 21, 2017
This PR was merged into the 3.3 branch.Discussion----------[Cache] Fix Predis client cluster with pipeline| Q             | A| ------------- | ---| Branch?       | 3.3| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | n/a| License       | MIT| Doc PR        | n/aCommits-------a85d5b0 Fix Predis client cluster with pipeline
@flolivaudflolivaud deleted the fix/predisCluster branchJune 21, 2017 14:37
@flolivaud
Copy link
ContributorAuthor

@fabpot the fix is actually on the 3.3 branch, but need to be on 3.3+ branches (master included).

@xabbuh
Copy link
Member

@flolivaud branches are merged up regularly so each fix will eventually land in all still maintained branches

@fabpotfabpot mentioned this pull requestJul 4, 2017
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

6 participants

@flolivaud@fabpot@keradus@nicolas-grekas@xabbuh@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp