Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upmget returns false if array has one key #435
Closed
Comments
|
Hey, This is interesting and I can also replicate the behavior. This is likely something simple and I should have a bit of time this afternoon to take a look at couple of the recent issues. Cheers, |
michael-grunder
added a commit
that referenced
this issue
Feb 21, 2014
The MGET call in RedisArray was failing under circumstances where none of the passed keys hashed into any given node in the ring. What was happening is that RedisArray was passing through to the phpredis MGET command an empty array, which was returning false. This in turn caused RedisArray to abort the process and return false as well. This change updates RedisArray MGET such that if a given node doesn't have any keys, we skip the call to it all together. Addresses #435 Addresses #436
|
Hey, I have sorted this problem in the branch Cheers! |
|
Merged and in master/develop, closing. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If the array of keys only has 1 key, mget on RedisArray returns false. Shouldn't this still return the correct value?