summaryrefslogtreecommitdiff
path: root/items.h
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2012-08-31 18:49:50 -0700
committerdormando <dormando@rydia.net>2012-09-03 00:35:54 -0700
commit67d7cfc1355a0f4550263f3d24758840668017f8 (patch)
tree29ff30850ffcb6fd8d8d1df166b6a4da56b4c236 /items.h
parent1c94e12c3d7615e4859eddde88ed7e53cd127d32 (diff)
downloadmemcached-67d7cfc1355a0f4550263f3d24758840668017f8.tar.gz
remove global stats lock from item allocation
This doesn't reduce mutex contention much, if at all, for the global stats lock, but it does remove a handful of instructions from the alloc hot path, which is always worth doing. Previous commits possibly added a handful of instructions for the loop and for the bucket readlock trylock, but this is still faster than .14 for writes overall.
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 4b25dcc..4c75119 100644
--- a/items.h
+++ b/items.h
@@ -16,6 +16,7 @@ int do_item_replace(item *it, item *new_it, const uint32_t hv);
/*@null@*/
char *do_item_cachedump(const unsigned int slabs_clsid, const unsigned int limit, unsigned int *bytes);
void do_item_stats(ADD_STAT add_stats, void *c);
+void do_item_stats_totals(ADD_STAT add_stats, void *c);
/*@null@*/
void do_item_stats_sizes(ADD_STAT add_stats, void *c);
void do_item_flush_expired(void);