Eliminate test issue while clients wait for async free

Former-commit-id: a41fb1b036dd4a933093f1df6dffe16f820153e4
This commit is contained in:
John Sully 2021-05-26 01:18:47 +00:00
parent 7cdbd48e7a
commit 551edf9443

View File

@ -2740,6 +2740,7 @@ sds getAllClientsInfoString(int type) {
while ((ln = listNext(&li)) != NULL) {
client = reinterpret_cast<struct client*>(listNodeValue(ln));
std::unique_lock<decltype(client->lock)> lock(client->lock);
if (client->flags & CLIENT_CLOSE_ASAP) continue;
if (type != -1 && getClientType(client) != type) continue;
o = catClientInfoString(o,client);
o = sdscatlen(o,"\n",1);