From 1b91a43498fa2e03300090aa7efa6a7ed2476f4b Mon Sep 17 00:00:00 2001 From: Shengliang Guan Date: Thu, 21 Jan 2021 23:14:39 +0800 Subject: [PATCH] TD-2798 --- src/sync/src/syncRestore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sync/src/syncRestore.c b/src/sync/src/syncRestore.c index 2360ca7bf3..2b1887b362 100644 --- a/src/sync/src/syncRestore.c +++ b/src/sync/src/syncRestore.c @@ -39,7 +39,7 @@ static int32_t syncRecvFileVersion(SSyncPeer *pPeer, uint64_t *fversion) { SFileAck fileVersionAck; memset(&fileVersionAck, 0, sizeof(SFileAck)); syncBuildFileAck(&fileVersionAck, pNode->vgId); - ret = taosReadMsg(pPeer->syncFd, &fileVersionAck, sizeof(SFileAck)); + ret = taosWriteMsg(pPeer->syncFd, &fileVersionAck, sizeof(SFileAck)); if (ret != sizeof(SFileAck)) { sError("%s, failed to write fver ack since %s", pPeer->id, strerror(errno)); return -1; -- GitLab