Minor changes to #7037.
This commit is contained in:
parent
5c23cd55d4
commit
c202c54ff7
@ -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 "
|
||||
|
@ -3976,7 +3976,7 @@ sds genRedisInfoString(const char *section) {
|
||||
"client_recent_max_output_buffer:%zu\r\n"
|
||||
"blocked_clients:%d\r\n"
|
||||
"tracking_clients:%d\r\n"
|
||||
"clients_in_timeout_table:%ld\r\n",
|
||||
"clients_in_timeout_table:%llu\r\n",
|
||||
listLength(server.clients)-listLength(server.slaves),
|
||||
maxin, maxout,
|
||||
server.blocked_clients,
|
||||
|
Loading…
x
Reference in New Issue
Block a user