summaryrefslogtreecommitdiff
path: root/items.h
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2018-02-12 14:13:53 -0800
committerdormando <dormando@rydia.net>2018-02-12 14:27:34 -0800
commit37bfa412de11c4a69e7fca0a88fd2759958647b2 (patch)
tree5c8c14565009c56c46d83239e65e5764a44fa611 /items.h
parentabfa8cf888db4ad9edc6b41b72f8d024d53290ee (diff)
downloadmemcached-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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/items.h b/items.h
index bf126d7..3b99c66 100644
--- a/items.h
+++ b/items.h
@@ -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);