X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=bindings%2Fperl%2Flib%2FCollectd.pm;h=7e89e45f5d05c60c4de44275757dbe9884c52332;hb=88800275e0d8a968085234f5c03c68da71c221e0;hp=ddacf0242cd07eb979875c237fe78b7c9b304144;hpb=f01c3e143c4369f11c130dbb0f0009a21f436574;p=collectd.git diff --git a/bindings/perl/lib/Collectd.pm b/bindings/perl/lib/Collectd.pm index ddacf024..7e89e45f 100644 --- a/bindings/perl/lib/Collectd.pm +++ b/bindings/perl/lib/Collectd.pm @@ -296,6 +296,9 @@ sub plugin_register { return plugin_register_notification($name, $data); } if (TYPE_FLUSH == $type) { + #For collectd-5.6 only + lock %{$plugins[$type]}; + $plugins[$type]->{$name} = $data; return plugin_register_flush($name, $data); } lock %{$plugins[$type]};