Merge pull request #3832 from oranagra/slave_reply_to_master_pr

when a slave responds with an error on commands that come from master, log it
This commit is contained in:
Salvatore Sanfilippo 2018-02-13 15:55:26 +01:00 committed by GitHub
commit 756df19134
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -388,6 +388,8 @@ void addReplyErrorLength(client *c, const char *s, size_t len) {
addReplyString(c,"-ERR ",5);
addReplyString(c,s,len);
addReplyString(c,"\r\n",2);
if (c->flags & CLIENT_MASTER)
serverLog(LL_WARNING,"Error sent to master: %s", s);
}
void addReplyError(client *c, const char *err) {