Fix deadlock issue #183 cause by lock inversion

Former-commit-id: e070651039975ad1d5be4a5f7cbb28eeefcb0015
This commit is contained in:
John Sully 2021-12-23 13:17:14 -05:00
parent 7a0b94f0ef
commit 9415fe7e1c

View File

@ -1942,7 +1942,9 @@ void ProcessPendingAsyncWrites()
bool fResult = c->postFunction([](client *c) {
c->fPendingAsyncWriteHandler = false;
clientInstallWriteHandler(c);
c->lock.unlock();
handleClientsWithPendingWrites(c->iel, g_pserver->aof_state);
c->lock.lock();
}, false);
if (!fResult)