summaryrefslogtreecommitdiff
path: root/slabs.h
diff options
context:
space:
mode:
authorTrond Norbye <trond.norbye@gmail.com>2010-11-12 08:36:06 -0800
committerTrond Norbye <trond.norbye@gmail.com>2010-11-12 08:36:39 -0800
commitefad616d1cd8bf8eb5d6e7573a1952cacb3073ee (patch)
treeb493b323c2677ed4db268d0de472d120379c3577 /slabs.h
parent2176290048d6a9a7292020256400b4cb9d498c7b (diff)
downloadmemcached-efad616d1cd8bf8eb5d6e7573a1952cacb3073ee.tar.gz
Issue 163: Buggy mem_requested values
Diffstat (limited to 'slabs.h')
-rw-r--r--slabs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/slabs.h b/slabs.h
index ec14455..21da116 100644
--- a/slabs.h
+++ b/slabs.h
@@ -24,6 +24,9 @@ void *slabs_alloc(const size_t size, unsigned int id);
/** Free previously allocated object */
void slabs_free(void *ptr, size_t size, unsigned int id);
+/** Adjust the stats for memory requested */
+void slabs_adjust_mem_requested(unsigned int id, size_t old, size_t ntotal);
+
/** Return a datum for stats in binary protocol */
bool get_stats(const char *stat_type, int nkey, ADD_STAT add_stats, void *c);