add user req
This commit is contained in:
parent
b15506c1de
commit
ee5794f494
|
@ -446,7 +446,7 @@ void transDQDestroy(SDelayQueue* queue, void (*freeFunc)(void* arg));
|
||||||
SDelayTask* transDQSched(SDelayQueue* queue, void (*func)(void* arg), void* arg, uint64_t timeoutMs);
|
SDelayTask* transDQSched(SDelayQueue* queue, void (*func)(void* arg), void* arg, uint64_t timeoutMs);
|
||||||
void transDQCancel(SDelayQueue* queue, SDelayTask* task);
|
void transDQCancel(SDelayQueue* queue, SDelayTask* task);
|
||||||
|
|
||||||
bool transRepEpsetIsEqual(SReqEpSet* a, SReqEpSet* b);
|
bool transReqEpsetIsEqual(SReqEpSet* a, SReqEpSet* b);
|
||||||
|
|
||||||
bool transCompareReqAndUserEpset(SReqEpSet* a, SEpSet* b);
|
bool transCompareReqAndUserEpset(SReqEpSet* a, SEpSet* b);
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -1592,7 +1592,7 @@ FORCE_INLINE int32_t cliMayCvtFqdnToIp(SReqEpSet* pEpSet, const SCvtAddr* pCvtAd
|
||||||
FORCE_INLINE bool cliIsEpsetUpdated(int32_t code, SReqCtx* pCtx) {
|
FORCE_INLINE bool cliIsEpsetUpdated(int32_t code, SReqCtx* pCtx) {
|
||||||
if (code != 0) return false;
|
if (code != 0) return false;
|
||||||
|
|
||||||
return transRepEpsetIsEqual(pCtx->epSet, pCtx->origEpSet) ? false : true;
|
return transReqEpsetIsEqual(pCtx->epSet, pCtx->origEpSet) ? false : true;
|
||||||
}
|
}
|
||||||
|
|
||||||
FORCE_INLINE int32_t cliBuildExceptResp(SCliThrd* pThrd, SCliReq* pReq, STransMsg* pResp) {
|
FORCE_INLINE int32_t cliBuildExceptResp(SCliThrd* pThrd, SCliReq* pReq, STransMsg* pResp) {
|
||||||
|
|
|
@ -667,7 +667,13 @@ void transPrintEpSet(SEpSet* pEpSet) {
|
||||||
len += snprintf(buf + len, sizeof(buf) - len, "}");
|
len += snprintf(buf + len, sizeof(buf) - len, "}");
|
||||||
tTrace("%s, inUse:%d", buf, pEpSet->inUse);
|
tTrace("%s, inUse:%d", buf, pEpSet->inUse);
|
||||||
}
|
}
|
||||||
bool transRepEpsetIsEqual(SReqEpSet* a, SReqEpSet* b) {
|
bool transReqEpsetIsEqual(SReqEpSet* a, SReqEpSet* b) {
|
||||||
|
if (a == NULL && b == NULL) {
|
||||||
|
return true;
|
||||||
|
} else if (a == NULL || b == NULL) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (a->numOfEps != b->numOfEps || a->inUse != b->inUse) {
|
if (a->numOfEps != b->numOfEps || a->inUse != b->inUse) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue