projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
write_riemann plugin: Really fix a memory leak.
[collectd.git]
/
src
/
rrdcached.c
diff --git
a/src/rrdcached.c
b/src/rrdcached.c
index
a37b4b5
..
7e0b1e7
100644
(file)
--- a/
src/rrdcached.c
+++ b/
src/rrdcached.c
@@
-1,6
+1,6
@@
/**
* collectd - src/rrdcached.c
/**
* collectd - src/rrdcached.c
- * Copyright (C) 2008-201
2
Florian octo Forster
+ * Copyright (C) 2008-201
3
Florian octo Forster
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
@@
-320,6
+320,14
@@
static int rc_read (void)
sstrncpy (vl.host, daemon_address, sizeof (vl.host));
sstrncpy (vl.plugin, "rrdcached", sizeof (vl.plugin));
sstrncpy (vl.host, daemon_address, sizeof (vl.host));
sstrncpy (vl.plugin, "rrdcached", sizeof (vl.plugin));
+ status = rrdc_connect (daemon_address);
+ if (status != 0)
+ {
+ ERROR ("rrdcached plugin: rrdc_connect (%s) failed with status %i.",
+ daemon_address, status);
+ return (-1);
+ }
+
head = NULL;
status = rrdc_stats_get (&head);
if (status != 0)
head = NULL;
status = rrdc_stats_get (&head);
if (status != 0)
@@
-463,6
+471,8
@@
static int rc_write (const data_set_t *ds, const value_list_t *vl,
filename);
return (-1);
}
filename);
return (-1);
}
+ else if (rrdcreate_config.async)
+ return (0);
}
}
}
}