From: Florian Forster Date: Thu, 11 Jul 2013 12:58:32 +0000 (+0200) Subject: statsd plugin: Make metric names case-sensitive. X-Git-Tag: collectd-5.4.0~13^2~2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4ebf0ce945b6ad1f8852aeb13d86a6f0a6144501;p=collectd.git statsd plugin: Make metric names case-sensitive. The StatsD by etsy is case sensitive, so we should do the same. Also, strcmp() should have better performance than strcasecmp(). --- diff --git a/src/statsd.c b/src/statsd.c index 364b97d7..4a58f410 100644 --- a/src/statsd.c +++ b/src/statsd.c @@ -643,7 +643,7 @@ static int statsd_init (void) /* {{{ */ { pthread_mutex_lock (&metrics_lock); if (metrics_tree == NULL) - metrics_tree = c_avl_create ((void *) strcasecmp); + metrics_tree = c_avl_create ((void *) strcmp); if (!network_thread_running) {