diff options
author | Costa Tsaousis <costa@netdata.cloud> | 2023-09-21 19:05:30 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-21 19:05:30 +0300 |
commit | 060f3ff7bf5b91899280ceaefaddf7ff4016a1f6 (patch) | |
tree | bc22bae023d952377076d39848703e829676d7b7 /streaming/rrdpush.h | |
parent | 6403d115235e0ef58cfb6d977aee9ea3dc0143b1 (diff) |
remove the line length limit from pluginsd (#16013)pre-integrations-docs
* remove the line length limit from pluginsd
* initialize the buffer on every iteration
* buffer_tostring inlined
* Release buffer
---------
Co-authored-by: Stelios Fragkakis <52996999+stelfrag@users.noreply.github.com>
Diffstat (limited to 'streaming/rrdpush.h')
-rw-r--r-- | streaming/rrdpush.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/streaming/rrdpush.h b/streaming/rrdpush.h index 09df8e711f..f8d6926039 100644 --- a/streaming/rrdpush.h +++ b/streaming/rrdpush.h @@ -357,7 +357,7 @@ struct buffered_reader { char read_buffer[PLUGINSD_LINE_MAX + 1]; }; -char *buffered_reader_next_line(struct buffered_reader *reader, char *dst, size_t dst_size); +bool buffered_reader_next_line(struct buffered_reader *reader, BUFFER *dst); static inline void buffered_reader_init(struct buffered_reader *reader) { reader->read_buffer[0] = '\0'; reader->read_len = 0; |