Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpredis/phpredis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichael-grunder <michael.grunder@gmail.com>2014-02-21 19:40:43 +0400
committermichael-grunder <michael.grunder@gmail.com>2014-02-21 19:40:43 +0400
commit2e2a84a99e08a04ddb77f5d06d7825291247e96c (patch)
treeb32551eb98bfca102d573d7031ea9f13b77d55ad /redis_array.c
parent79ccf9aec4d9713f162a2d499538f15631fa4997 (diff)
parent9eaf14756b37d6b63567070385da2b304ed4bd70 (diff)
Merge branch 'hotfix/mget_skip_empty' into develop
Diffstat (limited to 'redis_array.c')
-rw-r--r--redis_array.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/redis_array.c b/redis_array.c
index ecc158ea..2c431424 100644
--- a/redis_array.c
+++ b/redis_array.c
@@ -876,7 +876,10 @@ PHP_METHOD(RedisArray, mget)
/* calls */
for(n = 0; n < ra->count; ++n) { /* for each node */
- /* copy args for MGET call on node. */
+ /* We don't even need to make a call to this node if no keys go there */
+ if(!argc_each[n]) continue;
+
+ /* copy args for MGET call on node. */
MAKE_STD_ZVAL(z_argarray);
array_init(z_argarray);