From c88a19bc5eb563a2af8fcda4fcf236ef79124f6b Mon Sep 17 00:00:00 2001 From: John Sully Date: Fri, 23 Oct 2020 15:57:39 +0000 Subject: [PATCH] Fix multithread test failures Former-commit-id: 7c39a9b0e193f5c0b327ff21cd49210037142642 --- src/networking.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/networking.cpp b/src/networking.cpp index 9c4266df4..f5698282b 100644 --- a/src/networking.cpp +++ b/src/networking.cpp @@ -1915,10 +1915,8 @@ void ProcessPendingAsyncWrites() if (c->fPendingAsyncWriteHandler.compare_exchange_strong(expected, true)) { bool fResult = c->postFunction([](client *c) { c->fPendingAsyncWriteHandler = false; - if (c->bufpos || listLength(c->reply) || (c->flags & CLIENT_PENDING_WRITE)) { - clientInstallWriteHandler(c); - handleClientsWithPendingWrites(c->iel, g_pserver->aof_state); - } + clientInstallWriteHandler(c); + handleClientsWithPendingWrites(c->iel, g_pserver->aof_state); }, false); if (!fResult)