mirror of
https://github.com/fluencelabs/redis
synced 2025-06-14 01:31:21 +00:00
cron part of disk store object cache implemented. Objects are pushed as IO jobs if needed, so that the IO thread will process them.
This commit is contained in:
@ -620,11 +620,7 @@ int serverCron(struct aeEventLoop *eventLoop, long long id, void *clientData) {
|
||||
|
||||
/* Remove a few cached objects from memory if we are over the
|
||||
* configured memory limit */
|
||||
while (server.ds_enabled && zmalloc_used_memory() >
|
||||
server.cache_max_memory)
|
||||
{
|
||||
if (cacheFreeOneEntry() == REDIS_ERR) break;
|
||||
}
|
||||
if (server.ds_enabled) cacheCron();
|
||||
|
||||
/* Replication cron function -- used to reconnect to master and
|
||||
* to detect transfer failures. */
|
||||
|
Reference in New Issue
Block a user