diff options
author | Costa Tsaousis <costa@netdata.cloud> | 2022-12-03 16:30:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-03 16:30:43 +0200 |
commit | 1ccef511f0cc27cbc0aa46dff2ddc71928e8e304 (patch) | |
tree | 5a553da1732ac4165e55bb7dc0d8a5186c2bc2d6 /collectors | |
parent | 5061428c0effa811094190d255b1feb6b05901cc (diff) |
Fix __atomic_compare_exchange_n() atomics (#14085)
* proper use for atomic_compare_exchange()
* diskspace plugin is multi-threaded but it uses single threaded dictionaries
Diffstat (limited to 'collectors')
-rw-r--r-- | collectors/diskspace.plugin/plugin_diskspace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/collectors/diskspace.plugin/plugin_diskspace.c b/collectors/diskspace.plugin/plugin_diskspace.c index 5f610983b7..e806a33602 100644 --- a/collectors/diskspace.plugin/plugin_diskspace.c +++ b/collectors/diskspace.plugin/plugin_diskspace.c @@ -320,7 +320,7 @@ static inline void do_disk_space_stats(struct mountinfo *mi, int update_every) { , SIMPLE_PATTERN_EXACT ); - dict_mountpoints = dictionary_create(DICT_OPTION_SINGLE_THREADED); + dict_mountpoints = dictionary_create(DICT_OPTION_NONE); } struct mount_point_metadata *m = dictionary_get(dict_mountpoints, mi->mount_point); |