]> git.ipfire.org Git - thirdparty/collectd.git/commit
format_graphite: More cleanups.
authorFlorian Forster <octo@google.com>
Fri, 17 Jul 2020 10:43:01 +0000 (12:43 +0200)
committerFlorian Forster <octo@google.com>
Wed, 29 Jul 2020 11:40:03 +0000 (13:40 +0200)
commite8922f7307d72c315f0fc93215888afbcdcc566b
treee016dcf0e9f6a979b969f35bf4e6833f9541a4ad
parenta970c9f79c5c7605f153454edd53ee545791ff8b
format_graphite: More cleanups.

*   Struct "metric_t": unnecessary fields "type", "plugin", "ds" have
    been removed. The field "value_ds_type" has been renamed to
    "value_type".
*   The reference counted, multiple instance "meta_data_list_head_t" type
    has been removed. Manually doing the reference counting all over the
    place is error prone and it seems like premature optimization.
*   The "<type>_destroy" functions must handle NULL gracefully. Removed
    NULL-checks around their invocation to improve readability.

# Conflicts:
# src/daemon/metrics_list_test.c
src/utils/format_graphite/format_graphite.c