diff options
author | Costa Tsaousis <costa@netdata.cloud> | 2022-11-02 16:56:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-02 16:56:58 +0200 |
commit | 4aeb68234dabbb414a0b0c1599b670c02530b1c5 (patch) | |
tree | 6916cba77e5a278956d6ffec414067fe77174701 /collectors | |
parent | a581f2f647e741f7dbdbb8554996cf72b390afb1 (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.c | 7 |
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 // -------------------------------------------------------------------------------------------------------------------- |