Ensure MVCC timestamp is incremented after the real time is updated

Former-commit-id: 9c5b59ac010fa1e948d5e51d1cd408c7e743d66d
This commit is contained in:
John Sully 2020-10-27 04:52:35 +00:00
parent 0e44e11e3a
commit cba89cf9f9

View File

@ -3555,6 +3555,7 @@ void call(client *c, int flags) {
/* Call the command. */ /* Call the command. */
dirty = g_pserver->dirty; dirty = g_pserver->dirty;
updateCachedTime(0); updateCachedTime(0);
incrementMvccTstamp();
start = g_pserver->ustime; start = g_pserver->ustime;
c->cmd->proc(c); c->cmd->proc(c);
serverTL->commandsExecuted++; serverTL->commandsExecuted++;
@ -3838,8 +3839,6 @@ int processCommand(client *c, int callFlags) {
} }
} }
incrementMvccTstamp();
/* Handle the maxmemory directive. /* Handle the maxmemory directive.
* *
* Note that we do not want to reclaim memory if we are here re-entering * Note that we do not want to reclaim memory if we are here re-entering