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
1db72571
Commit
1db72571
authored
Feb 14, 2020
by
antirez
Browse files
Tracking: fix operators precedence error in bcast check.
parent
fe96e29d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/networking.c
View file @
1db72571
...
@@ -2268,7 +2268,7 @@ NULL
...
@@ -2268,7 +2268,7 @@ NULL
}
}
if
(
c
->
flags
&
CLIENT_TRACKING
)
{
if
(
c
->
flags
&
CLIENT_TRACKING
)
{
int
oldbcast
=
!!
c
->
flags
&
CLIENT_TRACKING_BCAST
;
int
oldbcast
=
!!
(
c
->
flags
&
CLIENT_TRACKING_BCAST
)
;
if
(
oldbcast
!=
bcast
)
{
if
(
oldbcast
!=
bcast
)
{
addReplyError
(
c
,
addReplyError
(
c
,
"You can't switch BCAST mode on/off before disabling "
"You can't switch BCAST mode on/off before disabling "
...
...
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