From 366d7498ef1c0d3f3aeebf518eb543b1dcc5db1b Mon Sep 17 00:00:00 2001 From: "gd.zhou" Date: Wed, 2 Sep 2026 17:17:25 +0800 Subject: [PATCH] [update] gtid module update ctrip_slaveTryPartialResynchronizationRead code --- deps/xredis-gtid | 2 +- src/replication.c | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/deps/xredis-gtid b/deps/xredis-gtid index 3c980262796..7e829465c64 160000 --- a/deps/xredis-gtid +++ b/deps/xredis-gtid @@ -1 +1 @@ -Subproject commit 3c980262796b1b1024c46c9f583d255d79b97e43 +Subproject commit 7e829465c642345e33a045fb903432db14de3db8 diff --git a/src/replication.c b/src/replication.c index ed8e6fdfc50..9e385ea2449 100644 --- a/src/replication.c +++ b/src/replication.c @@ -2185,7 +2185,10 @@ int slaveTryPartialResynchronization(connection *conn, int read_reply) { connSetReadHandler(conn, NULL); ctrip_result = ctrip_slaveTryPartialResynchronizationRead(conn,reply); - if (ctrip_result >= 0) return ctrip_result; + if (ctrip_result >= 0) { + sdsfree(reply); + return ctrip_result; + } if (!strncmp(reply,"+FULLRESYNC",11)) { char *replid = NULL, *offset = NULL;