From cba89cf9f9d553c2fa45952aa25c27b9b1e5c94b Mon Sep 17 00:00:00 2001 From: John Sully Date: Tue, 27 Oct 2020 04:52:35 +0000 Subject: [PATCH] Ensure MVCC timestamp is incremented after the real time is updated Former-commit-id: 9c5b59ac010fa1e948d5e51d1cd408c7e743d66d --- src/server.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/server.cpp b/src/server.cpp index 13086037d..e5ddd7a83 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -3555,6 +3555,7 @@ void call(client *c, int flags) { /* Call the command. */ dirty = g_pserver->dirty; updateCachedTime(0); + incrementMvccTstamp(); start = g_pserver->ustime; c->cmd->proc(c); serverTL->commandsExecuted++; @@ -3838,8 +3839,6 @@ int processCommand(client *c, int callFlags) { } } - incrementMvccTstamp(); - /* Handle the maxmemory directive. * * Note that we do not want to reclaim memory if we are here re-entering