diff options
author | michael-grunder <michael.grunder@gmail.com> | 2014-06-20 08:48:16 +0400 |
---|---|---|
committer | michael-grunder <michael.grunder@gmail.com> | 2015-05-06 01:02:04 +0300 |
commit | 7c54277e4e3a9cea09eaeb6c26ca0a7c0af2e375 (patch) | |
tree | f597eeb8a807fdb1aa9f87dca9b9df43d2b63696 /cluster_library.c | |
parent | 55e1d54cd011474f9281a8ee9a9a8a9b099928e7 (diff) |
Refactoring, updated handling of MULTI commands
Minor formatting changes
Updated how we delete context variables, such that our context
pointers aren't always going to be a zval** array. This
introduces the possibility of creating a memory leak if we have
to abort a transaction due to a communications error, but this
can be handled later by attaching a void dtor(void*) callback.
Diffstat (limited to 'cluster_library.c')
-rw-r--r-- | cluster_library.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/cluster_library.c b/cluster_library.c index 7ebf7801..666234cb 100644 --- a/cluster_library.c +++ b/cluster_library.c @@ -1784,16 +1784,15 @@ PHPAPI void cluster_mset_resp(INTERNAL_FUNCTION_PARAMETERS, redisCluster *c, /* Raw MULTI BULK reply */ PHPAPI void -cluster_mbulk_raw_resp(INTERNAL_FUNCTION_PARAMETERS, redisCluster *c, - void *ctx) { +cluster_mbulk_raw_resp(INTERNAL_FUNCTION_PARAMETERS, redisCluster *c, void *ctx) +{ cluster_gen_mbulk_resp(INTERNAL_FUNCTION_PARAM_PASSTHRU, c, mbulk_resp_loop_raw, NULL); } /* Unserialize all the things */ PHPAPI void -cluster_mbulk_resp(INTERNAL_FUNCTION_PARAMETERS, redisCluster *c, - void *ctx) +cluster_mbulk_resp(INTERNAL_FUNCTION_PARAMETERS, redisCluster *c, void *ctx) { cluster_gen_mbulk_resp(INTERNAL_FUNCTION_PARAM_PASSTHRU, c, mbulk_resp_loop, NULL); @@ -1803,7 +1802,8 @@ cluster_mbulk_resp(INTERNAL_FUNCTION_PARAMETERS, redisCluster *c, * we will turn into key => value, key => value. */ PHPAPI void cluster_mbulk_zipstr_resp(INTERNAL_FUNCTION_PARAMETERS, redisCluster *c, - void *ctx) { + void *ctx) +{ cluster_gen_mbulk_resp(INTERNAL_FUNCTION_PARAM_PASSTHRU, c, mbulk_resp_loop_zipstr, NULL); } @@ -1811,7 +1811,8 @@ cluster_mbulk_zipstr_resp(INTERNAL_FUNCTION_PARAMETERS, redisCluster *c, /* Handling key,value to key=>value where the values are doubles */ PHPAPI void cluster_mbulk_zipdbl_resp(INTERNAL_FUNCTION_PARAMETERS, redisCluster *c, - void *ctx) { + void *ctx) +{ cluster_gen_mbulk_resp(INTERNAL_FUNCTION_PARAM_PASSTHRU, c, mbulk_resp_loop_zipdbl, NULL); } |