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
afd0f06b
Commit
afd0f06b
authored
Nov 21, 2011
by
antirez
Browse files
Fixed bug in getClientInfoString() that was not rendering the N (no flags) special flag correctly.
parent
becf5fdb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/networking.c
View file @
afd0f06b
...
...
@@ -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
);
...
...
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