This commit is contained in:
Shengliang Guan 2020-11-11 14:30:12 +08:00
parent 6879c14ee8
commit 9730ad8eba
1 changed files with 1 additions and 0 deletions

View File

@ -894,6 +894,7 @@ static int32_t syncReadPeerMsg(SSyncPeer *pPeer, SSyncHead *pHead, char *cont) {
return -1;
}
assert(pHead->len <= TSDB_MAX_WAL_SIZE);
int32_t bytes = taosReadMsg(pPeer->peerFd, cont, pHead->len);
if (bytes != pHead->len) {
sError("%s, failed to read, bytes:%d len:%d", pPeer->id, bytes, pHead->len);