summaryrefslogtreecommitdiff
path: root/logger.h
diff options
context:
space:
mode:
authorKevin Lin <developer@kevinlin.info>2021-08-17 23:48:37 -0700
committerdormando <dormando@rydia.net>2021-09-27 12:58:03 -0700
commit4b23988acb2151de8009d0ddc5e9d770f7bf3169 (patch)
treec003c4a7bfc5cd9f23d90f6442ebd5ae70167351 /logger.h
parent32349beb8e34a47201546de08dec003d39f29649 (diff)
downloadmemcached-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 'logger.h')
-rw-r--r--logger.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/logger.h b/logger.h
index 4015206..039f443 100644
--- a/logger.h
+++ b/logger.h
@@ -170,6 +170,7 @@ struct logger_stats {
uint64_t worker_written;
uint64_t watcher_skipped;
uint64_t watcher_sent;
+ uint64_t watcher_count;
};
extern pthread_key_t logger_key;