refactor retry

This commit is contained in:
Yihao Deng 2024-01-22 01:04:06 +00:00
parent c56ddc1ba9
commit a20845ec69
2 changed files with 2 additions and 2 deletions

View File

@ -252,7 +252,7 @@ void mndGetMnodeEpSet(SMnode *pMnode, SEpSet *pEpSet) {
pEpSet->inUse = pEpSet->numOfEps;
} else {
pEpSet->inUse = (pEpSet->numOfEps + 1) % totalMnodes;
pEpSet->inUse = 0;
//pEpSet->inUse = 0;
}
}
if (pObj->pDnode != NULL) {

View File

@ -589,7 +589,7 @@ void syncGetRetryEpSet(int64_t rid, SEpSet* pEpSet) {
}
if (pEpSet->numOfEps > 0) {
pEpSet->inUse = (pSyncNode->raftCfg.cfg.myIndex + 1) % pEpSet->numOfEps;
pEpSet->inUse = 0;
// pEpSet->inUse = 0;
}
sInfo("vgId:%d, sync get retry epset numOfEps:%d inUse:%d", pSyncNode->vgId, pEpSet->numOfEps, pEpSet->inUse);