diff options
author | michael-grunder <michael.grunder@gmail.com> | 2014-12-09 21:26:48 +0300 |
---|---|---|
committer | michael-grunder <michael.grunder@gmail.com> | 2015-05-06 01:05:30 +0300 |
commit | 24823ef2ff21897207d0fa47d828c76a829ccc9d (patch) | |
tree | f6a5ac0384a3f12f3fef71c81dee479a4cff1855 /cluster_library.c | |
parent | a271c4852cb1dd712fd14ea01ff90a38bf626558 (diff) |
Minor formatting, cleanup
Diffstat (limited to 'cluster_library.c')
-rw-r--r-- | cluster_library.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cluster_library.c b/cluster_library.c index f4730f4d..36ce2628 100644 --- a/cluster_library.c +++ b/cluster_library.c @@ -951,7 +951,7 @@ static int cluster_sock_write(redisCluster *c, unsigned short slot, // Don't fall back if direct communication with this slot is required. if(direct) return -1; - // Fall back by attempting the request against every connected node + // Fall back by attempting the request against every known node for(zend_hash_internal_pointer_reset(c->nodes); zend_hash_has_more_elements(c->nodes)==SUCCESS; zend_hash_move_forward(c->nodes)) @@ -1234,7 +1234,7 @@ PHPAPI short cluster_send_command(redisCluster *c, short slot, const char *cmd, slot = c->redir_slot; } - /* If we didn't get a valid response and we do have a timeout check it */ + /* If we didn't get a valid response see if we've now timed out */ timedout = resp && c->waitms ? mstime() - msstart >= c->waitms : 0; } while(resp != 0 && !c->clusterdown && !timedout); |