Eliminate test issue while clients wait for async free
Former-commit-id: a41fb1b036dd4a933093f1df6dffe16f820153e4
This commit is contained in:
parent
02211afea8
commit
b94b46a5ee
@ -2740,6 +2740,7 @@ sds getAllClientsInfoString(int type) {
|
|||||||
while ((ln = listNext(&li)) != NULL) {
|
while ((ln = listNext(&li)) != NULL) {
|
||||||
client = reinterpret_cast<struct client*>(listNodeValue(ln));
|
client = reinterpret_cast<struct client*>(listNodeValue(ln));
|
||||||
std::unique_lock<decltype(client->lock)> lock(client->lock);
|
std::unique_lock<decltype(client->lock)> lock(client->lock);
|
||||||
|
if (client->flags & CLIENT_CLOSE_ASAP) continue;
|
||||||
if (type != -1 && getClientType(client) != type) continue;
|
if (type != -1 && getClientType(client) != type) continue;
|
||||||
o = catClientInfoString(o,client);
|
o = catClientInfoString(o,client);
|
||||||
o = sdscatlen(o,"\n",1);
|
o = sdscatlen(o,"\n",1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user