"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/evict.c" between
redis-6.2-rc3.tar.gz and redis-6.2.0.tar.gz

About: redis is an advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets.

evict.c  (redis-6.2-rc3):evict.c  (redis-6.2.0)
skipping to change at line 138 skipping to change at line 138
ep[j].idle = 0; ep[j].idle = 0;
ep[j].key = NULL; ep[j].key = NULL;
ep[j].cached = sdsnewlen(NULL,EVPOOL_CACHED_SDS_SIZE); ep[j].cached = sdsnewlen(NULL,EVPOOL_CACHED_SDS_SIZE);
ep[j].dbid = 0; ep[j].dbid = 0;
} }
EvictionPoolLRU = ep; EvictionPoolLRU = ep;
} }
/* This is an helper function for performEvictions(), it is used in order /* This is an helper function for performEvictions(), it is used in order
* to populate the evictionPool with a few entries every time we want to * to populate the evictionPool with a few entries every time we want to
* expire a key. Keys with idle time smaller than one of the current * expire a key. Keys with idle time bigger than one of the current
* keys are added. Keys are always added if there are free entries. * keys are added. Keys are always added if there are free entries.
* *
* We insert keys on place in ascending order, so keys with the smaller * We insert keys on place in ascending order, so keys with the smaller
* idle time are on the left, and keys with the higher idle time on the * idle time are on the left, and keys with the higher idle time on the
* right. */ * right. */
void evictionPoolPopulate(int dbid, dict *sampledict, dict *keydict, struct evic tionPoolEntry *pool) { void evictionPoolPopulate(int dbid, dict *sampledict, dict *keydict, struct evic tionPoolEntry *pool) {
int j, k, count; int j, k, count;
dictEntry *samples[server.maxmemory_samples]; dictEntry *samples[server.maxmemory_samples];
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)