Unverified Commit 756df191 authored by Salvatore Sanfilippo's avatar Salvatore Sanfilippo Committed by GitHub
Browse files

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
parents f9e6c204 161a3a17
......@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment