more work converting vm into object cache

This commit is contained in:
antirez
2010-12-28 20:03:21 +01:00
parent f081eaf1c0
commit f2da3a620c
3 changed files with 32 additions and 205 deletions

View File

@ -623,7 +623,7 @@ int serverCron(struct aeEventLoop *eventLoop, long long id, void *clientData) {
while (server.ds_enabled && zmalloc_used_memory() >
server.cache_max_memory)
{
cacheFreeOneEntry();
if (cacheFreeOneEntry() == REDIS_ERR) break;
}
/* Replication cron function -- used to reconnect to master and