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 a06d7eda9a
commit 57fbe4cbaf

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);