mirror of
https://github.com/fluencelabs/redis
synced 2025-06-22 05:21:33 +00:00
Update calls to anetPeerToString to include ip_len.
This commit is contained in:
@ -2428,7 +2428,7 @@ sds genRedisInfoString(char *section) {
|
||||
int port;
|
||||
long lag = 0;
|
||||
|
||||
if (anetPeerToString(slave->fd,ip,&port) == -1) continue;
|
||||
if (anetPeerToString(slave->fd,ip,sizeof(ip),&port) == -1) continue;
|
||||
switch(slave->replstate) {
|
||||
case REDIS_REPL_WAIT_BGSAVE_START:
|
||||
case REDIS_REPL_WAIT_BGSAVE_END:
|
||||
|
Reference in New Issue
Block a user