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
9e997cd0
Commit
9e997cd0
authored
Jul 20, 2020
by
zhaozhao.zz
Committed by
Oran Agra
Sep 01, 2020
Browse files
replication: need handle -NOPERM error after send ping (#7538)
(cherry picked from commit
13e50935
)
parent
171aa22b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/replication.c
View file @
9e997cd0
...
@@ -2158,6 +2158,7 @@ void syncWithMaster(connection *conn) {
...
@@ -2158,6 +2158,7 @@ void syncWithMaster(connection *conn) {
* both. */
* both. */
if
(
err
[
0
]
!=
'+'
&&
if
(
err
[
0
]
!=
'+'
&&
strncmp
(
err
,
"-NOAUTH"
,
7
)
!=
0
&&
strncmp
(
err
,
"-NOAUTH"
,
7
)
!=
0
&&
strncmp
(
err
,
"-NOPERM"
,
7
)
!=
0
&&
strncmp
(
err
,
"-ERR operation not permitted"
,
28
)
!=
0
)
strncmp
(
err
,
"-ERR operation not permitted"
,
28
)
!=
0
)
{
{
serverLog
(
LL_WARNING
,
"Error reply to PING from master: '%s'"
,
err
);
serverLog
(
LL_WARNING
,
"Error reply to PING from master: '%s'"
,
err
);
...
...
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