diff options
author | michael-grunder <michael.grunder@gmail.com> | 2014-06-13 02:07:45 +0400 |
---|---|---|
committer | michael-grunder <michael.grunder@gmail.com> | 2015-05-06 00:59:29 +0300 |
commit | 241c6cdcb7b66674936c0a2dae12d88a55b660b5 (patch) | |
tree | da458be386273ab71a5fb1bcfe706ce328ec82f1 /redis_cluster.h | |
parent | 95ecefcec6e805c2884503e8bce02e08bbb328ad (diff) |
Fixed HMGET, more MULTI support
Fixed HMGET so we don't leak memory when getting members
that don't exist.
Added a call to CLUSTER_RESET_MULTI() at the end of our
EXEC function, so afterwards we're not in MULTI mode.
Diffstat (limited to 'redis_cluster.h')
-rw-r--r-- | redis_cluster.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/redis_cluster.h b/redis_cluster.h index 9fb6f59c..b625c2f0 100644 --- a/redis_cluster.h +++ b/redis_cluster.h @@ -53,8 +53,8 @@ zend_hash_move_forward(c->nodes)) \ { \ (*_node)->sock->mode = ATOMIC; \ - } - + } \ + c->flags->mode = ATOMIC; /* Simple 1-1 command -> response macro */ #define CLUSTER_PROCESS_CMD(cmdname, resp_func) \ |