mirror of
https://github.com/fluencelabs/redis
synced 2025-06-12 16:51:22 +00:00
Minor changes to #7037.
This commit is contained in:
@ -374,10 +374,19 @@ void addReplyErrorLength(client *c, const char *s, size_t len) {
|
||||
* they are rare and may hint at errors in a script or a bug in Redis. */
|
||||
int ctype = getClientType(c);
|
||||
if (ctype == CLIENT_TYPE_MASTER || ctype == CLIENT_TYPE_SLAVE || c->id == CLIENT_ID_AOF) {
|
||||
char* to = c->id == CLIENT_ID_AOF ? "AOF-client" :
|
||||
ctype == CLIENT_TYPE_MASTER ? "master" : "replica";
|
||||
char* from = c->id == CLIENT_ID_AOF ? "server" :
|
||||
ctype == CLIENT_TYPE_MASTER ? "replica" : "master";
|
||||
char *to, *from;
|
||||
|
||||
if (c->id == CLIENT_ID_AOF) {
|
||||
to = "AOF-loading-client";
|
||||
from = "server";
|
||||
} else if (ctype == CLIENT_TYPE_MASTER) {
|
||||
to = "master";
|
||||
from = "replica";
|
||||
} else {
|
||||
to = "replica";
|
||||
from = "master";
|
||||
}
|
||||
|
||||
char *cmdname = c->lastcmd ? c->lastcmd->name : "<unknown>";
|
||||
serverLog(LL_WARNING,"== CRITICAL == This %s is sending an error "
|
||||
"to its %s: '%s' after processing the command "
|
||||
|
Reference in New Issue
Block a user