From efbc9b3c7e19d6e4d253785a80d284559eeb9f02 Mon Sep 17 00:00:00 2001 From: John Sully Date: Tue, 21 Sep 2021 21:15:21 +0000 Subject: [PATCH] Improve low load latency Former-commit-id: f5ac2432cf58c697a6da101d63423679cbd08021 --- src/networking.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/networking.cpp b/src/networking.cpp index 8667e4e7f..077c1c468 100644 --- a/src/networking.cpp +++ b/src/networking.cpp @@ -2710,7 +2710,7 @@ void readQueryFromClient(connection *conn) { if (cserver.cthreads > 1) { parseClientCommandBuffer(c); - if (g_pserver->enable_async_commands) + if (g_pserver->enable_async_commands && aeLockContention()) processInputBuffer(c, false, CMD_CALL_SLOWLOG | CMD_CALL_STATS | CMD_CALL_ASYNC); if (!c->vecqueuedcmd.empty()) serverTL->vecclientsProcess.push_back(c);