diff options
author | Kevin Lin <developer@kevinlin.info> | 2021-08-17 23:48:37 -0700 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2021-09-27 12:58:03 -0700 |
commit | 4b23988acb2151de8009d0ddc5e9d770f7bf3169 (patch) | |
tree | c003c4a7bfc5cd9f23d90f6442ebd5ae70167351 /memcached.h | |
parent | 32349beb8e34a47201546de08dec003d39f29649 (diff) | |
download | memcached-4b23988acb2151de8009d0ddc5e9d770f7bf3169.tar.gz |
Expose number of currently active watchers in stats1.6.11
The stat key `log_watchers` indicates the number of active connected
`watch` clients.
Diffstat (limited to 'memcached.h')
-rw-r--r-- | memcached.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/memcached.h b/memcached.h index 3289bdb..12385db 100644 --- a/memcached.h +++ b/memcached.h @@ -396,6 +396,7 @@ struct stats_state { unsigned int conn_structs; unsigned int reserved_fds; unsigned int hash_power_level; /* Better hope it's not over 9000 */ + unsigned int log_watchers; /* number of currently active watchers */ bool hash_is_expanding; /* If the hash table is being expanded */ bool accepting_conns; /* whether we are currently accepting */ bool slab_reassign_running; /* slab reassign in progress */ |