diff options
author | dormando <dormando@rydia.net> | 2018-02-12 14:13:53 -0800 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2018-02-12 14:27:34 -0800 |
commit | 37bfa412de11c4a69e7fca0a88fd2759958647b2 (patch) | |
tree | 5c8c14565009c56c46d83239e65e5764a44fa611 /items.h | |
parent | abfa8cf888db4ad9edc6b41b72f8d024d53290ee (diff) | |
download | memcached-37bfa412de11c4a69e7fca0a88fd2759958647b2.tar.gz |
limit crawls for metadumper
LRU crawler metadumper is used for getting snapshot-y looks at the LRU's.
Since there's no default limit, it'll get any new items added or bumped since
the roll started.
with this change it limits the number of items dumped to the number that
existed in that LRU when the roll was kicked off. You still end up with an
approximation, but not a terrible one:
- items bumped after the crawler passes them likely won't be revisited
- items bumped before the crawler passes them will likely be visited toward
the end, or mixed with new items.
- deletes are somewhere in the middle.
Diffstat (limited to 'items.h')
-rw-r--r-- | items.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -25,6 +25,7 @@ void do_item_update_nolock(item *it); int do_item_replace(item *it, item *new_it, const uint32_t hv); int item_is_flushed(item *it); +unsigned int do_get_lru_size(uint32_t id); void do_item_linktail_q(item *it); void do_item_unlinktail_q(item *it); |