From 28a77bdf8955889d3a57cbb8e904ba138aef41aa Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Tue, 27 May 2008 16:37:35 +0200 Subject: [PATCH] network plugin: Documented (in the source) that the network plugin cannot flush individual values. --- src/network.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/network.c b/src/network.c index cf01b719..6be7a098 100644 --- a/src/network.c +++ b/src/network.c @@ -1757,8 +1757,14 @@ static int network_init (void) return (0); } /* int network_init */ -/* TODO: Implement flushing of single items. */ -static int network_flush (int timeout, const char *itentifier) +/* + * The flush option of the network plugin cannot flush individual identifiers. + * All the values are added to a buffer and sent when the buffer is full, the + * requested value may or may not be in there, it's not worth finding out. We + * just send the buffer if `flush' is called - if the requested value was in + * there, good. If not, well, then there is nothing to flush.. -octo + */ +static int network_flush (int timeout, const char *identifier) { pthread_mutex_lock (&send_buffer_lock); -- 2.11.0