compile error in clang

This commit is contained in:
Shengliang Guan 2020-12-17 16:04:28 +08:00
parent 4069969a89
commit 69ce48ad90
1 changed files with 1 additions and 0 deletions

View File

@ -88,6 +88,7 @@ void syncBuildSyncDataMsg(SSyncMsg *pMsg, int32_t vgId) { syncBuildMsg(pMsg, vgI
void syncBuildSyncSetupMsg(SSyncMsg *pMsg, int32_t vgId) { syncBuildMsg(pMsg, vgId, TAOS_SMSG_SETUP); }
void syncBuildPeersStatus(SPeersStatus *pMsg, int32_t vgId) {
memset(pMsg, 0, sizeof(SPeersStatus));
pMsg->head.type = TAOS_SMSG_STATUS;
pMsg->head.vgId = vgId;
pMsg->head.len = sizeof(SPeersStatus) - sizeof(SSyncHead);