From bba9b516bfc0f6455d7827b6cf01fa66eb6e1069 Mon Sep 17 00:00:00 2001 From: John Sully Date: Thu, 23 Sep 2021 05:24:28 +0000 Subject: [PATCH] Async commands incorrectly think they are dirty Former-commit-id: 4874247931425767156ab3da934c00a4d4832bcf --- src/server.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/server.cpp b/src/server.cpp index ddc6af2e9..e78ec485d 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -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)