fix compile
This commit is contained in:
parent
9883b42358
commit
d864ede873
|
@ -1276,7 +1276,7 @@ SSyncNode* syncNodeOpen(SSyncInfo* pSyncInfo, int32_t vnodeVersion) {
|
|||
|
||||
// init peer heartbeat timer
|
||||
for (int32_t i = 0; i < TSDB_MAX_REPLICA + TSDB_MAX_LEARNER_REPLICA; ++i) {
|
||||
if (code = syncHbTimerInit(pSyncNode, &(pSyncNode->peerHeartbeatTimerArr[i]), (pSyncNode->replicasId)[i]) != 0) {
|
||||
if ((code = syncHbTimerInit(pSyncNode, &(pSyncNode->peerHeartbeatTimerArr[i]), (pSyncNode->replicasId)[i])) != 0) {
|
||||
errno = code;
|
||||
goto _error;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue