Commit 5d5e68a4 authored by antirez's avatar antirez
Browse files

Fixed bug in getClientInfoString() that was not rendering the N (no flags) special flag correctly.

parent a6e46274
...@@ -910,13 +910,13 @@ sds getClientInfoString(redisClient *client) { ...@@ -910,13 +910,13 @@ sds getClientInfoString(redisClient *client) {
*p++ = 'S'; *p++ = 'S';
} }
if (client->flags & REDIS_MASTER) *p++ = 'M'; if (client->flags & REDIS_MASTER) *p++ = 'M';
if (p == flags) *p++ = 'N';
if (client->flags & REDIS_MULTI) *p++ = 'x'; if (client->flags & REDIS_MULTI) *p++ = 'x';
if (client->flags & REDIS_BLOCKED) *p++ = 'b'; if (client->flags & REDIS_BLOCKED) *p++ = 'b';
if (client->flags & REDIS_IO_WAIT) *p++ = 'i'; if (client->flags & REDIS_IO_WAIT) *p++ = 'i';
if (client->flags & REDIS_DIRTY_CAS) *p++ = 'd'; if (client->flags & REDIS_DIRTY_CAS) *p++ = 'd';
if (client->flags & REDIS_CLOSE_AFTER_REPLY) *p++ = 'c'; if (client->flags & REDIS_CLOSE_AFTER_REPLY) *p++ = 'c';
if (client->flags & REDIS_UNBLOCKED) *p++ = 'u'; if (client->flags & REDIS_UNBLOCKED) *p++ = 'u';
if (p == flags) *p++ = 'N';
*p++ = '\0'; *p++ = '\0';
emask = client->fd == -1 ? 0 : aeGetFileEvents(server.el,client->fd); emask = client->fd == -1 ? 0 : aeGetFileEvents(server.el,client->fd);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment