@@ -3722,7 +3722,7 @@ sds clusterGenNodesDescription(int filter) {
37223722 * CLUSTER command
37233723 * -------------------------------------------------------------------------- */
37243724
3725- int getSlotOrReply (redisClient * c , robj * o ) {
3725+ int getSlotOrReply (client * c , robj * o ) {
37263726 long long slot ;
37273727
37283728 if (getLongLongFromObject (o ,& slot ) != REDIS_OK ||
@@ -3734,7 +3734,7 @@ int getSlotOrReply(redisClient *c, robj *o) {
37343734 return (int ) slot ;
37353735}
37363736
3737- void clusterReplyMultiBulkSlots (redisClient * c ) {
3737+ void clusterReplyMultiBulkSlots (client * c ) {
37383738 /* Format: 1) 1) start slot
37393739 * 2) end slot
37403740 * 3) 1) master IP
@@ -3804,7 +3804,7 @@ void clusterReplyMultiBulkSlots(redisClient *c) {
38043804 setDeferredMultiBulkLength (c , slot_replylen , num_masters );
38053805}
38063806
3807- void clusterCommand (redisClient * c ) {
3807+ void clusterCommand (client * c ) {
38083808 if (server .cluster_enabled == 0 ) {
38093809 addReplyError (c ,"This instance has cluster support disabled" );
38103810 return ;
@@ -4363,7 +4363,7 @@ int verifyDumpPayload(unsigned char *p, size_t len) {
43634363/* DUMP keyname
43644364 * DUMP is actually not used by Redis Cluster but it is the obvious
43654365 * complement of RESTORE and can be useful for different applications. */
4366- void dumpCommand (redisClient * c ) {
4366+ void dumpCommand (client * c ) {
43674367 robj * o , * dumpobj ;
43684368 rio payload ;
43694369
@@ -4384,7 +4384,7 @@ void dumpCommand(redisClient *c) {
43844384}
43854385
43864386/* RESTORE key ttl serialized-value [REPLACE] */
4387- void restoreCommand (redisClient * c ) {
4387+ void restoreCommand (client * c ) {
43884388 long long ttl ;
43894389 rio payload ;
43904390 int j , type , replace = 0 ;
@@ -4466,7 +4466,7 @@ typedef struct migrateCachedSocket {
44664466 * If the caller detects an error while using the socket, migrateCloseSocket()
44674467 * should be called so that the connection will be created from scratch
44684468 * the next time. */
4469- migrateCachedSocket * migrateGetSocket (redisClient * c , robj * host , robj * port , long timeout ) {
4469+ migrateCachedSocket * migrateGetSocket (client * c , robj * host , robj * port , long timeout ) {
44704470 int fd ;
44714471 sds name = sdsempty ();
44724472 migrateCachedSocket * cs ;
@@ -4558,7 +4558,7 @@ void migrateCloseTimedoutSockets(void) {
45584558}
45594559
45604560/* MIGRATE host port key dbid timeout [COPY | REPLACE] */
4561- void migrateCommand (redisClient * c ) {
4561+ void migrateCommand (client * c ) {
45624562 migrateCachedSocket * cs ;
45634563 int copy , replace , j ;
45644564 long timeout ;
@@ -4723,7 +4723,7 @@ void migrateCommand(redisClient *c) {
47234723 * The client should issue ASKING before to actually send the command to
47244724 * the target instance. See the Redis Cluster specification for more
47254725 * information. */
4726- void askingCommand (redisClient * c ) {
4726+ void askingCommand (client * c ) {
47274727 if (server .cluster_enabled == 0 ) {
47284728 addReplyError (c ,"This instance has cluster support disabled" );
47294729 return ;
@@ -4735,7 +4735,7 @@ void askingCommand(redisClient *c) {
47354735/* The READONLY command is used by clients to enter the read-only mode.
47364736 * In this mode slaves will not redirect clients as long as clients access
47374737 * with read-only commands to keys that are served by the slave's master. */
4738- void readonlyCommand (redisClient * c ) {
4738+ void readonlyCommand (client * c ) {
47394739 if (server .cluster_enabled == 0 ) {
47404740 addReplyError (c ,"This instance has cluster support disabled" );
47414741 return ;
@@ -4745,7 +4745,7 @@ void readonlyCommand(redisClient *c) {
47454745}
47464746
47474747/* The READWRITE command just clears the READONLY command state. */
4748- void readwriteCommand (redisClient * c ) {
4748+ void readwriteCommand (client * c ) {
47494749 c -> flags &= ~REDIS_READONLY ;
47504750 addReply (c ,shared .ok );
47514751}
@@ -4779,7 +4779,7 @@ void readwriteCommand(redisClient *c) {
47794779 * not bound to any node. In this case the cluster global state should be
47804780 * already "down" but it is fragile to rely on the update of the global state,
47814781 * so we also handle it here. */
4782- clusterNode * getNodeByQuery (redisClient * c , struct redisCommand * cmd , robj * * argv , int argc , int * hashslot , int * error_code ) {
4782+ clusterNode * getNodeByQuery (client * c , struct redisCommand * cmd , robj * * argv , int argc , int * hashslot , int * error_code ) {
47834783 clusterNode * n = NULL ;
47844784 robj * firstkey = NULL ;
47854785 int multiple_keys = 0 ;
@@ -4940,7 +4940,7 @@ clusterNode *getNodeByQuery(redisClient *c, struct redisCommand *cmd, robj **arg
49404940 * are used, then the node 'n' should not be NULL, but should be the
49414941 * node we want to mention in the redirection. Moreover hashslot should
49424942 * be set to the hash slot that caused the redirection. */
4943- void clusterRedirectClient (redisClient * c , clusterNode * n , int hashslot , int error_code ) {
4943+ void clusterRedirectClient (client * c , clusterNode * n , int hashslot , int error_code ) {
49444944 if (error_code == REDIS_CLUSTER_REDIR_CROSS_SLOT ) {
49454945 addReplySds (c ,sdsnew ("-CROSSSLOT Keys in request don't hash to the same slot\r\n" ));
49464946 } else if (error_code == REDIS_CLUSTER_REDIR_UNSTABLE ) {
@@ -4975,7 +4975,7 @@ void clusterRedirectClient(redisClient *c, clusterNode *n, int hashslot, int err
49754975 * If the client is found to be blocked into an hash slot this node no
49764976 * longer handles, the client is sent a redirection error, and the function
49774977 * returns 1. Otherwise 0 is returned and no operation is performed. */
4978- int clusterRedirectBlockedClientIfNeeded (redisClient * c ) {
4978+ int clusterRedirectBlockedClientIfNeeded (client * c ) {
49794979 if (c -> flags & REDIS_BLOCKED && c -> btype == REDIS_BLOCKED_LIST ) {
49804980 dictEntry * de ;
49814981 dictIterator * di ;
0 commit comments