0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-23 13:00:23 +00:00

fix memory corruption in streaming ()

This commit is contained in:
Costa Tsaousis 2025-03-08 16:22:44 +00:00 committed by GitHub
parent 149434ad84
commit 48a12f6f51
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View file

@ -1055,6 +1055,7 @@ void stream_receiver_replication_check_from_poll(struct stream_thread *sth, usec
__atomic_load_n(&host->stream.rcv.status.replication.counter_in, __ATOMIC_RELAXED));
stream_receiver_remove(sth, rpt, STREAM_HANDSHAKE_DISCONNECT_REPLICATION_STALLED);
continue;
}
rpt->replication.last_checked_ut = rpt->replication.last_progress_ut;

View file

@ -630,6 +630,7 @@ void stream_sender_replication_check_from_poll(struct stream_thread *sth, usec_t
__atomic_load_n(&host->stream.snd.status.replication.counter_out, __ATOMIC_RELAXED));
stream_sender_move_running_to_connector_or_remove(sth, s, STREAM_HANDSHAKE_DISCONNECT_REPLICATION_STALLED, 0, true);
continue;
}
s->replication.last_checked_ut = s->replication.last_progress_ut;