projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge pull request #2194 from maryamtahhan/feat_dpdkstat_fix
[collectd.git]
/
bindings
/
perl
/
lib
/
Collectd.pm
diff --git
a/bindings/perl/lib/Collectd.pm
b/bindings/perl/lib/Collectd.pm
index
ddacf02
..
7e89e45
100644
(file)
--- 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]};