Commit f5538642 authored by zhaozhao.zz's avatar zhaozhao.zz
Browse files

clients: show pubsub flag in client list

parent ab55f9da
...@@ -1506,6 +1506,7 @@ sds catClientInfoString(sds s, client *client) { ...@@ -1506,6 +1506,7 @@ sds catClientInfoString(sds s, client *client) {
*p++ = 'S'; *p++ = 'S';
} }
if (client->flags & CLIENT_MASTER) *p++ = 'M'; if (client->flags & CLIENT_MASTER) *p++ = 'M';
if (client->flags & CLIENT_PUBSUB) *p++ = 'P';
if (client->flags & CLIENT_MULTI) *p++ = 'x'; if (client->flags & CLIENT_MULTI) *p++ = 'x';
if (client->flags & CLIENT_BLOCKED) *p++ = 'b'; if (client->flags & CLIENT_BLOCKED) *p++ = 'b';
if (client->flags & CLIENT_DIRTY_CAS) *p++ = 'd'; if (client->flags & CLIENT_DIRTY_CAS) *p++ = 'd';
......
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