add new interface
This commit is contained in:
parent
f90438a56a
commit
1dd5461cdd
|
@ -167,7 +167,7 @@ int32_t rpcSendRequest(void* shandle, const SEpSet* pEpSet, SRpcMsg* pMsg, int64
|
||||||
return transSendRequest(shandle, pEpSet, pMsg, NULL);
|
return transSendRequest(shandle, pEpSet, pMsg, NULL);
|
||||||
}
|
}
|
||||||
int32_t rpcSendRequestWithCtx(void* shandle, const SEpSet* pEpSet, SRpcMsg* pMsg, int64_t* pRid, SRpcCtx* pCtx) {
|
int32_t rpcSendRequestWithCtx(void* shandle, const SEpSet* pEpSet, SRpcMsg* pMsg, int64_t* pRid, SRpcCtx* pCtx) {
|
||||||
if (pCtx != NULL || pMsg->info.handle != 0) {
|
if (pCtx != NULL || pMsg->info.handle != 0 || pRid == NULL) {
|
||||||
return transSendRequest(shandle, pEpSet, pMsg, pCtx);
|
return transSendRequest(shandle, pEpSet, pMsg, pCtx);
|
||||||
} else {
|
} else {
|
||||||
return transSendRequestWithId(shandle, pEpSet, pMsg, pRid);
|
return transSendRequestWithId(shandle, pEpSet, pMsg, pRid);
|
||||||
|
|
|
@ -2922,6 +2922,7 @@ _exception:
|
||||||
}
|
}
|
||||||
int32_t transSendRequestWithId(void* shandle, const SEpSet* pEpSet, STransMsg* pReq, int64_t* transpointId) {
|
int32_t transSendRequestWithId(void* shandle, const SEpSet* pEpSet, STransMsg* pReq, int64_t* transpointId) {
|
||||||
if (transpointId == NULL) {
|
if (transpointId == NULL) {
|
||||||
|
ASSERT(0);
|
||||||
return TSDB_CODE_INVALID_PARA;
|
return TSDB_CODE_INVALID_PARA;
|
||||||
}
|
}
|
||||||
int32_t code = 0;
|
int32_t code = 0;
|
||||||
|
|
Loading…
Reference in New Issue