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

(cherry picked from commit 57fbe4cbafb07aa9f036d7e2f5cf88830c27a921)
This commit is contained in:
zhaozhao.zz 2020-07-20 22:21:55 +08:00 committed by Oran Agra
parent 925f1ce51e
commit 8739408147

View File

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