Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
5d5e68a4
Commit
5d5e68a4
authored
Nov 21, 2011
by
antirez
Browse files
Fixed bug in getClientInfoString() that was not rendering the N (no flags) special flag correctly.
parent
a6e46274
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/networking.c
View file @
5d5e68a4
...
@@ -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);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment