summaryrefslogtreecommitdiff
path: root/memcached.c
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2017-12-17 23:38:23 -0800
committerdormando <dormando@rydia.net>2017-12-17 23:38:23 -0800
commit5b31593aa320a3d5606674aba2e9e43958a16b42 (patch)
tree5bdb3679fbf500a73d8044957a9a2fc7d1a01139 /memcached.c
parent44bff2924018fa69c33adaeb0fddd004c66f3e95 (diff)
downloadmemcached-5b31593aa320a3d5606674aba2e9e43958a16b42.tar.gz
extstore: stats settings outputs
finally.
Diffstat (limited to 'memcached.c')
-rw-r--r--memcached.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/memcached.c b/memcached.c
index a83bd55..3cb5442 100644
--- a/memcached.c
+++ b/memcached.c
@@ -3232,6 +3232,18 @@ static void process_stat_settings(ADD_STAT add_stats, void *c) {
APPEND_STAT("worker_logbuf_size", "%u", settings.logger_buf_size);
APPEND_STAT("track_sizes", "%s", item_stats_sizes_status() ? "yes" : "no");
APPEND_STAT("inline_ascii_response", "%s", settings.inline_ascii_response ? "yes" : "no");
+#ifdef EXTSTORE
+ APPEND_STAT("ext_item_size", "%u", settings.ext_item_size);
+ APPEND_STAT("ext_item_age", "%u", settings.ext_item_age);
+ APPEND_STAT("ext_low_ttl", "%u", settings.ext_low_ttl);
+ APPEND_STAT("ext_recache_rate", "%u", settings.ext_recache_rate);
+ APPEND_STAT("ext_wbuf_size", "%u", settings.ext_wbuf_size);
+ APPEND_STAT("ext_compact_under", "%u", settings.ext_compact_under);
+ APPEND_STAT("ext_drop_under", "%u", settings.ext_drop_under);
+ APPEND_STAT("ext_max_frag", "%.2f", settings.ext_max_frag);
+ APPEND_STAT("slab_automove_freeratio", "%.3f", settings.slab_automove_freeratio);
+ APPEND_STAT("ext_drop_unread", "%s", settings.ext_drop_unread ? "yes" : "no");
+#endif
}
static void conn_to_str(const conn *c, char *buf) {