summaryrefslogtreecommitdiffstats
path: root/streaming/sender.c
diff options
context:
space:
mode:
authorCosta Tsaousis <costa@netdata.cloud>2023-01-14 00:09:02 +0200
committerGitHub <noreply@github.com>2023-01-14 00:09:02 +0200
commitf10f19c8c8bba37e8364fa6138d6ea0f6160c3ea (patch)
tree6d71bc40d56362dd4de892239a633bdcfa2183be /streaming/sender.c
parent3e2924fd466dbc05338518412f426d34b215ef0b (diff)
More 32bit fixes (#14264)
* query planer weight calculation using long long * adjust replication query ahead pipeline for smaller systems * do not generate huge replication messages * add message to indicate replication message was interrupted * improved message * max replication size 25% of sender buffer * fix for last commit * use less cache and smaller page sizes and fewer threads on 32-bits * fix reserved libuv workers for 32bits * fix detection of 32/64 bit
Diffstat (limited to 'streaming/sender.c')
-rw-r--r--streaming/sender.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/streaming/sender.c b/streaming/sender.c
index dd76389462..4a33990558 100644
--- a/streaming/sender.c
+++ b/streaming/sender.c
@@ -510,6 +510,8 @@ static bool rrdpush_sender_thread_connect_to_parent(RRDHOST *host, int default_p
stream_encoded_t se;
rrdpush_encode_variable(&se, host);
+ host->sender->hops = host->system_info->hops + 1;
+
char http[HTTP_HEADER_SIZE + 1];
int eol = snprintfz(http, HTTP_HEADER_SIZE,
"STREAM "
@@ -568,7 +570,7 @@ static bool rrdpush_sender_thread_connect_to_parent(RRDHOST *host, int default_p
, rrdhost_timezone(host)
, rrdhost_abbrev_timezone(host)
, host->utc_offset
- , host->system_info->hops + 1
+ , host->sender->hops
, host->system_info->ml_capable
, host->system_info->ml_enabled
, host->system_info->mc_version