From 4ebf0ce945b6ad1f8852aeb13d86a6f0a6144501 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Thu, 11 Jul 2013 14:58:32 +0200 Subject: [PATCH] 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(). --- src/statsd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.11.0