From 954a2a532dcd055027602ab6c94001e614ad5ea0 Mon Sep 17 00:00:00 2001 From: Jake Smith Date: Tue, 26 Sep 2023 15:17:31 +0100 Subject: [PATCH] HPCC-30361 watchdog SocketEndpoint serialization fix Signed-off-by: Jake Smith --- thorlcr/shared/thwatchdog.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/thorlcr/shared/thwatchdog.hpp b/thorlcr/shared/thwatchdog.hpp index 2e65594d06d..ba8b5edf0be 100644 --- a/thorlcr/shared/thwatchdog.hpp +++ b/thorlcr/shared/thwatchdog.hpp @@ -30,11 +30,13 @@ struct HeartBeatPacketHeader { public: + // NB: packetSize and progressSize are back-patched and must remain at fixed offsets from the start of this struct size32_t packetSize = 0; // used as validity check must be first - SocketEndpoint sender; - unsigned tick = 0; // sequence check size32_t progressSize = 0; // size of progress data (following performance data) + unsigned tick = 0; // sequence check + SocketEndpoint sender; + public: void serialize(MemoryBuffer & out) const {