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
8a46d32b
Commit
8a46d32b
authored
Mar 10, 2019
by
antirez
Browse files
Make comment in #5911 stay inside 80 cols.
parent
55acac04
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/replication.c
View file @
8a46d32b
...
@@ -2041,7 +2041,8 @@ void replicaofCommand(client *c) {
...
@@ -2041,7 +2041,8 @@ void replicaofCommand(client *c) {
if
(
c
->
flags
&
CLIENT_SLAVE
)
if
(
c
->
flags
&
CLIENT_SLAVE
)
{
{
/* If a client is already a replica they cannot run this command,
/* If a client is already a replica they cannot run this command,
* because it involves flushing all replicas (including this client) */
* because it involves flushing all replicas (including this
* client) */
addReplyError
(
c
,
"Command is not valid when client is a replica."
);
addReplyError
(
c
,
"Command is not valid when client is a replica."
);
return
;
return
;
}
}
...
...
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