mirror of
https://github.com/fluencelabs/redis
synced 2025-03-20 17:40:50 +00:00
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:
commit
756df19134
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user