fix memory corruption in streaming (#19805)
Costa Tsaousis committed
Mar 8, 2025 at 16:22 UTC
48a12f6f51637c41b51b7417dffc36c29979348b
2 files changed
+2
src/streaming/stream-receiver.c
+1
@@ -1055,6 +1055,7 @@ void stream_receiver_replication_check_from_poll(struct stream_thread *sth, usec
1055
__atomic_load_n(&host->stream.rcv.status.replication.counter_in, __ATOMIC_RELAXED));
1056
1057
stream_receiver_remove(sth, rpt, STREAM_HANDSHAKE_DISCONNECT_REPLICATION_STALLED);
1058
+ continue;
1059
}
1060
1061
rpt->replication.last_checked_ut = rpt->replication.last_progress_ut;
src/streaming/stream-sender.c
+1
@@ -630,6 +630,7 @@ void stream_sender_replication_check_from_poll(struct stream_thread *sth, usec_t
630
__atomic_load_n(&host->stream.snd.status.replication.counter_out, __ATOMIC_RELAXED));
631
632
stream_sender_move_running_to_connector_or_remove(sth, s, STREAM_HANDSHAKE_DISCONNECT_REPLICATION_STALLED, 0, true);
633
+ continue;
634
}
635
636
s->replication.last_checked_ut = s->replication.last_progress_ut;