diff --git a/src/server.cpp b/src/server.cpp index a57b449e8..053c9ff1b 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -2341,12 +2341,6 @@ int serverCron(struct aeEventLoop *eventLoop, long long id, void *clientData) { * the operation even if completely idle. */ if (g_pserver->tracking_clients) trackingLimitUsedSlots(); - /* Resize tracking keys table if needed. This is also done at every - * command execution, but we want to be sure that if the last command - * executed changes the value via CONFIG SET, the server will perform - * the operation even if completely idle. */ - if (g_pserver->tracking_clients) trackingLimitUsedSlots(); - /* Start a scheduled BGSAVE if the corresponding flag is set. This is * useful when we are forced to postpone a BGSAVE because an AOF * rewrite is in progress. @@ -2928,10 +2922,6 @@ void initServerConfig(void) { for (j = 0; j < CONFIG_OOM_COUNT; j++) g_pserver->oom_score_adj_values[j] = configOOMScoreAdjValuesDefaults[j]; - /* Linux OOM Score config */ - for (j = 0; j < CONFIG_OOM_COUNT; j++) - g_pserver->oom_score_adj_values[j] = configOOMScoreAdjValuesDefaults[j]; - /* Double constants initialization */ R_Zero = 0.0; R_PosInf = 1.0/R_Zero;