Fix deadlock issue #183 cause by lock inversion
Former-commit-id: e070651039975ad1d5be4a5f7cbb28eeefcb0015
This commit is contained in:
parent
7a0b94f0ef
commit
9415fe7e1c
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user