mirror of
https://github.com/fluencelabs/redis
synced 2025-06-12 16:51:22 +00:00
Unix socket clients properly displayed in MONITOR and CLIENT LIST.
This also fixes issue #745.
This commit is contained in:
@ -54,10 +54,12 @@ void replicationFeedMonitors(redisClient *c, list *monitors, int dictid, robj **
|
||||
gettimeofday(&tv,NULL);
|
||||
cmdrepr = sdscatprintf(cmdrepr,"%ld.%06ld ",(long)tv.tv_sec,(long)tv.tv_usec);
|
||||
if (c->flags & REDIS_LUA_CLIENT) {
|
||||
cmdrepr = sdscatprintf(cmdrepr,"[%d lua] ", dictid);
|
||||
cmdrepr = sdscatprintf(cmdrepr,"[%d lua] ",dictid);
|
||||
} else if (c->flags & REDIS_UNIX_SOCKET) {
|
||||
cmdrepr = sdscatprintf(cmdrepr,"[%d unix:%s] ",dictid,server.unixsocket);
|
||||
} else {
|
||||
anetPeerToString(c->fd,ip,&port);
|
||||
cmdrepr = sdscatprintf(cmdrepr,"[%d %s:%d] ", dictid,ip,port);
|
||||
cmdrepr = sdscatprintf(cmdrepr,"[%d %s:%d] ",dictid,ip,port);
|
||||
}
|
||||
|
||||
for (j = 0; j < argc; j++) {
|
||||
|
Reference in New Issue
Block a user