replication: need handle -NOPERM error after send ping (#7538)

This commit is contained in:
zhaozhao.zz 2020-07-20 22:21:55 +08:00 committed by GitHub
parent e4d7de608c
commit 13e50935a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2158,6 +2158,7 @@ void syncWithMaster(connection *conn) {
* both. */
if (err[0] != '+' &&
strncmp(err,"-NOAUTH",7) != 0 &&
strncmp(err,"-NOPERM",7) != 0 &&
strncmp(err,"-ERR operation not permitted",28) != 0)
{
serverLog(LL_WARNING,"Error reply to PING from master: '%s'",err);