From ceb8f190783eebbad5be438e6309e6d11235a5b1 Mon Sep 17 00:00:00 2001 From: John Sully Date: Mon, 11 May 2020 20:31:47 -0400 Subject: [PATCH] Update cached time only in main cron Former-commit-id: 5396dd9587599d6672e8d80967aa1fd8ba16e7ec --- src/server.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/server.cpp b/src/server.cpp index 847299ec4..1729be2e7 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -2249,8 +2249,6 @@ int serverCronLite(struct aeEventLoop *eventLoop, long long id, void *clientData int iel = ielFromEventLoop(eventLoop); serverAssert(iel != IDX_EVENT_LOOP_MAIN); - updateCachedTime(1); - /* If another threads unblocked one of our clients, and this thread has been idle then beforeSleep won't have a chance to process the unblocking. So we also process them here in the cron job to ensure they don't starve.