mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
CLIENT LIST / INFO show resp version (#9508)
This commit is contained in:
parent
16be742b08
commit
7c376398b1
@ -2329,7 +2329,7 @@ sds catClientInfoString(sds s, client *client) {
|
|||||||
total_mem += zmalloc_size(client->argv);
|
total_mem += zmalloc_size(client->argv);
|
||||||
|
|
||||||
return sdscatfmt(s,
|
return sdscatfmt(s,
|
||||||
"id=%U addr=%s laddr=%s %s name=%s age=%I idle=%I flags=%s db=%i sub=%i psub=%i multi=%i qbuf=%U qbuf-free=%U argv-mem=%U obl=%U oll=%U omem=%U tot-mem=%U events=%s cmd=%s user=%s redir=%I",
|
"id=%U addr=%s laddr=%s %s name=%s age=%I idle=%I flags=%s db=%i sub=%i psub=%i multi=%i qbuf=%U qbuf-free=%U argv-mem=%U obl=%U oll=%U omem=%U tot-mem=%U events=%s cmd=%s user=%s redir=%I resp=%i",
|
||||||
(unsigned long long) client->id,
|
(unsigned long long) client->id,
|
||||||
getClientPeerId(client),
|
getClientPeerId(client),
|
||||||
getClientSockname(client),
|
getClientSockname(client),
|
||||||
@ -2352,7 +2352,8 @@ sds catClientInfoString(sds s, client *client) {
|
|||||||
events,
|
events,
|
||||||
client->lastcmd ? client->lastcmd->name : "NULL",
|
client->lastcmd ? client->lastcmd->name : "NULL",
|
||||||
client->user ? client->user->name : "(superuser)",
|
client->user ? client->user->name : "(superuser)",
|
||||||
(client->flags & CLIENT_TRACKING) ? (long long) client->client_tracking_redirection : -1);
|
(client->flags & CLIENT_TRACKING) ? (long long) client->client_tracking_redirection : -1,
|
||||||
|
client->resp);
|
||||||
}
|
}
|
||||||
|
|
||||||
sds getAllClientsInfoString(int type) {
|
sds getAllClientsInfoString(int type) {
|
||||||
|
Loading…
Reference in New Issue
Block a user