From afd0f06b755ff53ce91d1dabeca959655590d3f0 Mon Sep 17 00:00:00 2001 From: antirez Date: Mon, 21 Nov 2011 16:19:30 +0100 Subject: [PATCH] Fixed bug in getClientInfoString() that was not rendering the N (no flags) special flag correctly. --- src/networking.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/networking.c b/src/networking.c index a741718f..537ebaba 100644 --- a/src/networking.c +++ b/src/networking.c @@ -951,12 +951,12 @@ 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_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); -- 2.47.2