diff options
author | Toru Maesaka <dev@torum.net> | 2008-10-19 21:33:25 +0900 |
---|---|---|
committer | Dustin Sallings <dustin@spy.net> | 2009-01-03 00:09:12 -0800 |
commit | 3bdfd4637c6347d617a1e4f14d161a431edfe929 (patch) | |
tree | 9b215f3f9e55428d489049ec206b497ce48f99f5 /slabs.h | |
parent | b2b4942917cb1d8a62016f3478eb4f8e605194a4 (diff) | |
download | memcached-3bdfd4637c6347d617a1e4f14d161a431edfe929.tar.gz |
Fix for stats opaque issue pointed out at the hackathon and removed some wasteful function calls (more to come).
Diffstat (limited to 'slabs.h')
-rw-r--r-- | slabs.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -25,12 +25,12 @@ void do_slabs_free(void *ptr, size_t size, unsigned int id); /** Return a datum for stats in binary protocol */ char *get_stats(const char *stat_type, uint32_t (*add_stats)(char *buf, const char *key, const uint16_t klen, const char *val, - const uint32_t vlen), int *buflen); + const uint32_t vlen, void *cookie), void *arg, int *buflen); /** Fill buffer with stats */ /*@null@*/ -char *do_slabs_stats(uint32_t (*add_stats)(char *buf, const char *key, - const uint16_t klen, const char *val, - const uint32_t vlen), int *buflen); +char *do_slabs_stats(uint32_t (*add_stats)(char *buf, + const char *key, const uint16_t klen, const char *val, + const uint32_t vlen, void *cookie), void *c, int *buflen); /* Request some slab be moved between classes 1 = success |