Permalink
Browse files

Fixed bug in getClientInfoString() that was not rendering the N (no f…

…lags) special flag correctly.
  • Loading branch information...
antirez committed Nov 21, 2011
1 parent a6e4627 commit 5d5e68a486ab7d14c331f8685c0ff2db9f0ebc0e
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/networking.c
View
@@ -910,13 +910,13 @@ sds getClientInfoString(redisClient *client) {
*p++ = 'S';
}
if (client->flags & REDIS_MASTER) *p++ = 'M';
- if (p == flags) *p++ = 'N';
if (client->flags & REDIS_MULTI) *p++ = 'x';
if (client->flags & REDIS_BLOCKED) *p++ = 'b';
if (client->flags & REDIS_IO_WAIT) *p++ = 'i';
if (client->flags & REDIS_DIRTY_CAS) *p++ = 'd';
if (client->flags & REDIS_CLOSE_AFTER_REPLY) *p++ = 'c';
if (client->flags & REDIS_UNBLOCKED) *p++ = 'u';
+ if (p == flags) *p++ = 'N';
*p++ = '\0';
emask = client->fd == -1 ? 0 : aeGetFileEvents(server.el,client->fd);

0 comments on commit 5d5e68a

Please sign in to comment.