Async commands incorrectly think they are dirty

Former-commit-id: 4874247931425767156ab3da934c00a4d4832bcf
This commit is contained in:
John Sully 2021-09-23 05:24:28 +00:00
parent 4a0b8534f4
commit 938d318596

View File

@ -4405,7 +4405,10 @@ void call(client *c, int flags) {
serverTL->commandsExecuted++;
const long duration = elapsedUs(call_timer);
c->duration = duration;
dirty = g_pserver->dirty-dirty;
if (flags & CMD_CALL_ASYNC)
dirty = 0; // dirty is bogus in this case as there's no synchronization
else
dirty = g_pserver->dirty-dirty;
if (dirty < 0) dirty = 0;
if (dirty)