Actually call databasesCron() inside serverCron().

This commit is contained in:
antirez 2013-03-08 13:59:50 +01:00
parent 3bd3c5303e
commit 3f75c20dac

View File

@ -932,6 +932,9 @@ int serverCron(struct aeEventLoop *eventLoop, long long id, void *clientData) {
/* We need to do a few operations on clients asynchronously. */
clientsCron();
/* Handle background operations on Redis databases. */
databasesCron();
/* Start a scheduled AOF rewrite if this was requested by the user while
* a BGSAVE was in progress. */
if (server.rdb_child_pid == -1 && server.aof_child_pid == -1 &&