Code

ceph plugin: Rewrite handling of JSON state.
authorFlorian Forster <octo@collectd.org>
Thu, 3 Dec 2015 12:05:03 +0000 (13:05 +0100)
committerFlorian Forster <octo@collectd.org>
Thu, 3 Dec 2015 12:05:03 +0000 (13:05 +0100)
commite5a9d9dee9e5ad0d47a68723bb7aa33b65355214
treea0a0187c2a59aa2b427042f7f656dc9faa25ded3
parent380959068f87619143e98c52399847eb761fb222
ceph plugin: Rewrite handling of JSON state.

The previous code didn't handle non-numeric map values correctly,
leaking state and resulting in ridiculously long key strings. This
rewrite fixes this and adds a unit test to ensure that this is actually
working as intended.

Fixes: #1350
src/ceph.c
src/ceph_test.c