diff options
author | dormando <dormando@rydia.net> | 2017-11-27 13:46:19 -0800 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2017-11-28 14:18:05 -0800 |
commit | 7a9756522c9e5c4ebd40d46681f1552f9d85a069 (patch) | |
tree | d231b2974f02554f16bba20294f48e9c13a86a0d /slabs.c | |
parent | e4caa1917b17f599603c29d4af58a68e73a1f428 (diff) | |
download | memcached-7a9756522c9e5c4ebd40d46681f1552f9d85a069.tar.gz |
extstore: always output global page pool
if we want to disable automove and run an external algo that examines the
page pool count...
removes temp hack from external script.
Diffstat (limited to 'slabs.c')
-rw-r--r-- | slabs.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -424,11 +424,9 @@ bool get_stats(const char *stat_type, int nkey, ADD_STAT add_stats, void *c) { APPEND_STAT("curr_items", "%llu", (unsigned long long)stats_state.curr_items); APPEND_STAT("total_items", "%llu", (unsigned long long)stats.total_items); STATS_UNLOCK(); - if (settings.slab_automove > 0) { - pthread_mutex_lock(&slabs_lock); - APPEND_STAT("slab_global_page_pool", "%u", slabclass[SLAB_GLOBAL_PAGE_POOL].slabs); - pthread_mutex_unlock(&slabs_lock); - } + pthread_mutex_lock(&slabs_lock); + APPEND_STAT("slab_global_page_pool", "%u", slabclass[SLAB_GLOBAL_PAGE_POOL].slabs); + pthread_mutex_unlock(&slabs_lock); item_stats_totals(add_stats, c); } else if (nz_strcmp(nkey, stat_type, "items") == 0) { item_stats(add_stats, c); |