summaryrefslogtreecommitdiffstats
path: root/collectors
diff options
context:
space:
mode:
authorCosta Tsaousis <costa@netdata.cloud>2022-11-02 16:56:58 +0200
committerGitHub <noreply@github.com>2022-11-02 16:56:58 +0200
commit4aeb68234dabbb414a0b0c1599b670c02530b1c5 (patch)
tree6916cba77e5a278956d6ffec414067fe77174701 /collectors
parenta581f2f647e741f7dbdbb8554996cf72b390afb1 (diff)
Statsd dictionaries should be multi-threaded (#13938)
* the new dictionaries do not support concurrent use without locks * update dictionaries readme
Diffstat (limited to 'collectors')
-rw-r--r--collectors/statsd.plugin/statsd.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/collectors/statsd.plugin/statsd.c b/collectors/statsd.plugin/statsd.c
index 42970bc7f3..cb78341a0c 100644
--- a/collectors/statsd.plugin/statsd.c
+++ b/collectors/statsd.plugin/statsd.c
@@ -20,15 +20,10 @@
// --------------------------------------------------------------------------------------
+// DO NOT ENABLE MULTITHREADING - IT IS NOT WELL TESTED
// #define STATSD_MULTITHREADED 1
-#ifdef STATSD_MULTITHREADED
-// DO NOT ENABLE MULTITHREADING - IT IS NOT WELL TESTED
#define STATSD_DICTIONARY_OPTIONS (DICT_OPTION_DONT_OVERWRITE_VALUE | DICT_OPTION_ADD_IN_FRONT)
-#else
-#define STATSD_DICTIONARY_OPTIONS (DICT_OPTION_DONT_OVERWRITE_VALUE | DICT_OPTION_ADD_IN_FRONT | DICT_OPTION_SINGLE_THREADED)
-#endif
-
#define STATSD_DECIMAL_DETAIL 1000 // floating point values get multiplied by this, with the same divisor
// --------------------------------------------------------------------------------------------------------------------