summaryrefslogtreecommitdiff
path: root/items.h
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2016-08-04 17:55:06 -0700
committerdormando <dormando@rydia.net>2016-08-19 17:34:55 -0700
commit502e94080d30a77e05d6373b25322e7160a91f39 (patch)
tree95c2cb78971064c95aecd5787885bf12703bf752 /items.h
parent31e7d8f5feb4a4a4c52557b2a2597bd074de47ca (diff)
downloadmemcached-502e94080d30a77e05d6373b25322e7160a91f39.tar.gz
refactor checkpoint for LRU crawler
now has internal module system for the LRU crawler. autocrawl checker should be a bit better now. doesn't constantly re-run the histogram calcs. metadump works as a module now. ended up generalizing the client case outside of the module system since it looks reusable. Cut the amount of functions required for metadump specifically to nothing. still need to bug hunt, a few more smaller refactors, and see about pulling this out into its own file.
Diffstat (limited to 'items.h')
-rw-r--r--items.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/items.h b/items.h
index 848f8c0..d9d99e3 100644
--- a/items.h
+++ b/items.h
@@ -35,7 +35,7 @@ void item_stats_reset(void);
extern pthread_mutex_t lru_locks[POWER_LARGEST];
enum crawler_result_type {
- CRAWLER_OK=0, CRAWLER_RUNNING, CRAWLER_BADCLASS, CRAWLER_NOTSTARTED
+ CRAWLER_OK=0, CRAWLER_RUNNING, CRAWLER_BADCLASS, CRAWLER_NOTSTARTED, CRAWLER_ERROR
};
int start_lru_maintainer_thread(void);
@@ -47,7 +47,6 @@ void lru_maintainer_resume(void);
int start_item_crawler_thread(void);
int stop_item_crawler_thread(void);
int init_lru_crawler(void);
-enum crawler_result_type lru_crawler_crawl(char *slabs, enum crawler_run_type);
-int lru_crawler_set_client(void *c, const int sfd); /* FIXME: Temporary. */
+enum crawler_result_type lru_crawler_crawl(char *slabs, enum crawler_run_type, void *c, const int sfd);
void lru_crawler_pause(void);
void lru_crawler_resume(void);