run when necessary
Former-commit-id: d724e7226c690fdce0e6ee6cbf8afdb9481f51c5
This commit is contained in:
parent
b5074e9b1e
commit
b0d9d3bc09
@ -1915,8 +1915,10 @@ void ProcessPendingAsyncWrites()
|
|||||||
if (c->fPendingAsyncWriteHandler.compare_exchange_strong(expected, true)) {
|
if (c->fPendingAsyncWriteHandler.compare_exchange_strong(expected, true)) {
|
||||||
bool fResult = c->postFunction([](client *c) {
|
bool fResult = c->postFunction([](client *c) {
|
||||||
c->fPendingAsyncWriteHandler = false;
|
c->fPendingAsyncWriteHandler = false;
|
||||||
clientInstallWriteHandler(c);
|
if (c->bufpos || listLength(c->reply) || (c->flags & CLIENT_PENDING_WRITE)) {
|
||||||
handleClientsWithPendingWrites(c->iel, g_pserver->aof_state);
|
clientInstallWriteHandler(c);
|
||||||
|
handleClientsWithPendingWrites(c->iel, g_pserver->aof_state);
|
||||||
|
}
|
||||||
}, false);
|
}, false);
|
||||||
|
|
||||||
if (!fResult)
|
if (!fResult)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user