This commit is contained in:
Liu Jicong 2022-01-07 18:59:17 +08:00
parent 29cb7c6792
commit 4d635478fe
3 changed files with 4 additions and 2 deletions

View File

@ -96,8 +96,9 @@ static void* hbThreadFunc(void* param) {
SClientHbBatchReq* pReq = hbGatherAllInfo(); SClientHbBatchReq* pReq = hbGatherAllInfo();
void* reqStr = NULL; void* reqStr = NULL;
tSerializeSClientHbBatchReq(&reqStr, pReq); int tlen = tSerializeSClientHbBatchReq(&reqStr, pReq);
SMsgSendInfo info; SMsgSendInfo info;
/*info.fp = hbHandleRsp;*/
int64_t transporterId = 0; int64_t transporterId = 0;
asyncSendMsgToServer(clientHbMgr.transporter, &clientHbMgr.epSet, &transporterId, &info); asyncSendMsgToServer(clientHbMgr.transporter, &clientHbMgr.epSet, &transporterId, &info);

View File

@ -37,7 +37,7 @@ int tSerializeSClientHbReq(void **buf, const SClientHbReq *pReq) {
taosHashGetKey(pIter, &kv.key, (size_t *)&kv.keyLen); taosHashGetKey(pIter, &kv.key, (size_t *)&kv.keyLen);
kv.valueLen = taosHashGetDataLen(pIter); kv.valueLen = taosHashGetDataLen(pIter);
kv.value = pIter; kv.value = pIter;
taosEncodeSKv(buf, &kv); tlen += taosEncodeSKv(buf, &kv);
pIter = taosHashIterate(pReq->info, pIter); pIter = taosHashIterate(pReq->info, pIter);
} }

View File

@ -244,6 +244,7 @@ int walRoll(SWal *pWal) {
pWal->writeIdxTfd = idxTfd; pWal->writeIdxTfd = idxTfd;
pWal->writeLogTfd = logTfd; pWal->writeLogTfd = logTfd;
pWal->writeCur = taosArrayGetSize(pWal->fileInfoSet) - 1; pWal->writeCur = taosArrayGetSize(pWal->fileInfoSet) - 1;
ASSERT(pWal->writeCur >= 0);
pWal->lastRollSeq = walGetSeq(); pWal->lastRollSeq = walGetSeq();
return 0; return 0;