diff options
author | dormando <dormando@rydia.net> | 2017-09-26 14:28:57 -0700 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2017-09-26 14:44:15 -0700 |
commit | f2a84a747457b7d6d0f961a3992735529debb8c4 (patch) | |
tree | 12e25ddc0e4069806073c486d50bf60daa6036a9 /items.h | |
parent | 4ce647a23128583b74822748a7f1411a75f50d51 (diff) | |
download | memcached-f2a84a747457b7d6d0f961a3992735529debb8c4.tar.gz |
make lru_pull_tail function public
used in separate file for flash branch.
Diffstat (limited to 'items.h')
-rw-r--r-- | items.h | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -32,6 +32,19 @@ item *do_item_crawl_q(item *it); void *item_lru_bump_buf_create(void); +#define LRU_PULL_EVICT 1 +#define LRU_PULL_CRAWL_BLOCKS 2 +#define LRU_PULL_RETURN_ITEM 4 /* fill info struct if available */ + +struct lru_pull_tail_return { + item *it; + uint32_t hv; +}; + +int lru_pull_tail(const int orig_id, const int cur_lru, + const uint64_t total_bytes, const uint8_t flags, const rel_time_t max_age, + struct lru_pull_tail_return *ret_it); + /*@null@*/ char *item_cachedump(const unsigned int slabs_clsid, const unsigned int limit, unsigned int *bytes); void item_stats(ADD_STAT add_stats, void *c); |