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

(cherry picked from commit 13e50935a84c319763a0d3b2be6ce64962092541)
This commit is contained in:
zhaozhao.zz 2020-07-20 22:21:55 +08:00 committed by Oran Agra
parent 171aa22b0b
commit 9e997cd0d1

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