diff options
author | dormando <dormando@rydia.net> | 2017-01-22 20:23:18 -0800 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2017-01-22 20:23:18 -0800 |
commit | 75a152390b54ae1516196eaa9859085fbb70474f (patch) | |
tree | 3c9fc6a5908db482304ae389679cbd9b8bf07285 /items.c | |
parent | 2266c8402bd4f8a2f2a2da6a053c1d63a628e230 (diff) | |
download | memcached-75a152390b54ae1516196eaa9859085fbb70474f.tar.gz |
use correct bitmask for sub-LRU check
Diffstat (limited to 'items.c')
-rw-r--r-- | items.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -447,8 +447,7 @@ void do_item_update(item *it) { if (settings.lru_maintainer_thread) { assert((it->it_flags & ITEM_SLABBED) == 0); if ((it->it_flags & ITEM_LINKED) != 0) { - // FIXME: do better LRU check. - if (it->slabs_clsid >= COLD_LRU && it->slabs_clsid < TEMP_LRU) { + if (ITEM_lruid(it) == COLD_LRU) { it->time = current_time; item_unlink_q(it); it->slabs_clsid = ITEM_clsid(it); |