ehn/add-sync-heartbeat-sent-time-to-log

This commit is contained in:
dmchen 2024-11-20 08:57:27 +08:00
parent fde7a7aeaf
commit 828f01f5ae
1 changed files with 2 additions and 1 deletions

View File

@ -92,10 +92,11 @@ int32_t syncNodeSendAppendEntries(SSyncNode* pSyncNode, const SRaftId* destRaftI
}
int32_t syncNodeSendHeartbeat(SSyncNode* pSyncNode, const SRaftId* destId, SRpcMsg* pMsg) {
SRaftId destIdTmp = *destId;
TAOS_CHECK_RETURN(syncNodeSendMsgById(destId, pSyncNode, pMsg));
int64_t tsMs = taosGetTimestampMs();
syncIndexMgrSetSentTime(pSyncNode->pMatchIndex, destId, tsMs);
syncIndexMgrSetSentTime(pSyncNode->pMatchIndex, &destIdTmp, tsMs);
return TSDB_CODE_SUCCESS;
}