From 13e50935a84c319763a0d3b2be6ce64962092541 Mon Sep 17 00:00:00 2001 From: "zhaozhao.zz" <276441700@qq.com> Date: Mon, 20 Jul 2020 22:21:55 +0800 Subject: [PATCH] replication: need handle -NOPERM error after send ping (#7538) --- src/replication.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/replication.c b/src/replication.c index 8457150a0..197acde79 100644 --- a/src/replication.c +++ b/src/replication.c @@ -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);