From fba198328fc5e83893ae98b65c56b03c5d217bfd Mon Sep 17 00:00:00 2001 From: naglera Date: Thu, 10 Oct 2024 09:46:43 +0000 Subject: [PATCH] Fix comments Signed-off-by: naglera --- src/replication.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/replication.c b/src/replication.c index 87e218fd6d..600d295608 100644 --- a/src/replication.c +++ b/src/replication.c @@ -2622,7 +2622,7 @@ static int dualChannelReplHandleHandshake(connection *conn, sds *err) { if (connSetReadHandler(conn, dualChannelFullSyncWithPrimary) == C_ERR) { char conninfo[CONN_INFO_LEN]; - serverLog(LL_WARNING, "Can't create readable event for SYNC: %s (%s)", *err, + serverLog(LL_WARNING, "Can't create readable event for SYNC: %s (%s)", strerror(errno), connGetInfo(conn, conninfo, sizeof(conninfo))); return C_ERR; } @@ -3315,7 +3315,7 @@ void dualChannelSetupMainConnForPsync(connection *conn) { } if (ret == C_ERR) { - serverLog(LL_WARNING, "Aborting dual channel sync. Main channel psync result %d, %s", ret, err); + serverLog(LL_WARNING, "Aborting dual channel sync. Main channel psync result %d %s", ret, err ? err : ""); cancelReplicationHandshake(1); } sdsfree(err);