Commit dfd732df authored by antirez's avatar antirez
Browse files

Actually call databasesCron() inside serverCron().

parent cd9dcd18
...@@ -932,6 +932,9 @@ int serverCron(struct aeEventLoop *eventLoop, long long id, void *clientData) { ...@@ -932,6 +932,9 @@ int serverCron(struct aeEventLoop *eventLoop, long long id, void *clientData) {
/* We need to do a few operations on clients asynchronously. */ /* We need to do a few operations on clients asynchronously. */
clientsCron(); clientsCron();
/* Handle background operations on Redis databases. */
databasesCron();
/* Start a scheduled AOF rewrite if this was requested by the user while /* Start a scheduled AOF rewrite if this was requested by the user while
* a BGSAVE was in progress. */ * a BGSAVE was in progress. */
if (server.rdb_child_pid == -1 && server.aof_child_pid == -1 && if (server.rdb_child_pid == -1 && server.aof_child_pid == -1 &&
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment