getClientPeerId() now reports errors.

We now also use it in CLIENT KILL implementation.
This commit is contained in:
antirez
2013-07-09 15:28:30 +02:00
parent 4fa68b2815
commit da18366609
2 changed files with 14 additions and 14 deletions

View File

@ -909,7 +909,7 @@ void copyClientOutputBuffer(redisClient *dst, redisClient *src);
void *dupClientReplyValue(void *o);
void getClientsMaxBuffers(unsigned long *longest_output_list,
unsigned long *biggest_input_buffer);
void getClientPeerId(redisClient *client, char *peerid, size_t peerid_len);
int getClientPeerId(redisClient *client, char *peerid, size_t peerid_len);
sds getClientInfoString(redisClient *client);
sds getAllClientsInfoString(void);
void rewriteClientCommandVector(redisClient *c, int argc, ...);