compile error
This commit is contained in:
parent
baf6b0fa78
commit
23693d9c53
|
@ -50,7 +50,7 @@ TSKEY tscGetSubscriptionProgress(void* sub, int64_t uid);
|
||||||
void tscUpdateSubscriptionProgress(void* sub, int64_t uid, TSKEY ts);
|
void tscUpdateSubscriptionProgress(void* sub, int64_t uid, TSKEY ts);
|
||||||
void tscSaveSubscriptionProgress(void* sub);
|
void tscSaveSubscriptionProgress(void* sub);
|
||||||
|
|
||||||
static int32_t minMsgSize() { return tsRpcHeadSize + sizeof(STaosDigest); }
|
static int32_t minMsgSize() { return tsRpcHeadSize + 100; }
|
||||||
|
|
||||||
void tscPrintMgmtIp() {
|
void tscPrintMgmtIp() {
|
||||||
if (tscMgmtIpList.numOfIps <= 0) {
|
if (tscMgmtIpList.numOfIps <= 0) {
|
||||||
|
@ -329,7 +329,7 @@ int tscSendMsgToServer(SSqlObj *pSql) {
|
||||||
* message body by using "if (pHeader->msgType & 1)" may cause the segment fault.
|
* message body by using "if (pHeader->msgType & 1)" may cause the segment fault.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
size_t totalLen = pSql->cmd.payloadLen + tsRpcHeadSize + sizeof(STaosDigest);
|
size_t totalLen = pSql->cmd.payloadLen + tsRpcHeadSize + 100;
|
||||||
|
|
||||||
// the memory will be released by taosProcessResponse, so no memory leak here
|
// the memory will be released by taosProcessResponse, so no memory leak here
|
||||||
char *pStart = rpcMallocCont(pSql->cmd.payloadLen);
|
char *pStart = rpcMallocCont(pSql->cmd.payloadLen);
|
||||||
|
@ -350,10 +350,10 @@ int tscSendMsgToServer(SSqlObj *pSql) {
|
||||||
//if (tscUpdateVnodeMsg[pSql->cmd.command]) (*tscUpdateVnodeMsg[pSql->cmd.command])(pSql, pStart);
|
//if (tscUpdateVnodeMsg[pSql->cmd.command]) (*tscUpdateVnodeMsg[pSql->cmd.command])(pSql, pStart);
|
||||||
|
|
||||||
if (pSql->cmd.command < TSDB_SQL_MGMT) {
|
if (pSql->cmd.command < TSDB_SQL_MGMT) {
|
||||||
rpcSendRequest(pTscMgmtConn, tscMgmtIpList, pSql->cmd.msgType, pStart, pSql->cmd.payloadLen, pSql);
|
rpcSendRequest(pTscMgmtConn, &tscMgmtIpList, pSql->cmd.msgType, pStart, pSql->cmd.payloadLen, pSql);
|
||||||
} else {
|
} else {
|
||||||
SRpcIpSet rpcSet = tscMgmtIpList;
|
SRpcIpSet rpcSet = tscMgmtIpList;
|
||||||
rpcSendRequest(pVnodeConn, rpcSet, pSql->cmd.msgType, pStart, pSql->cmd.payloadLen, pSql);
|
rpcSendRequest(pVnodeConn, &rpcSet, pSql->cmd.msgType, pStart, pSql->cmd.payloadLen, pSql);
|
||||||
}
|
}
|
||||||
|
|
||||||
tscTrace("%p send msg code:%d sig:%p", pSql, code, signature);
|
tscTrace("%p send msg code:%d sig:%p", pSql, code, signature);
|
||||||
|
|
|
@ -600,7 +600,7 @@ int32_t tscCopyDataBlockToPayload(SSqlObj* pSql, STableDataBlocks* pDataBlock) {
|
||||||
* the dataBlock only includes the RPC Header buffer and actual submit messsage body, space for digest needs
|
* the dataBlock only includes the RPC Header buffer and actual submit messsage body, space for digest needs
|
||||||
* additional space.
|
* additional space.
|
||||||
*/
|
*/
|
||||||
int ret = tscAllocPayload(pCmd, pDataBlock->nAllocSize + sizeof(STaosDigest));
|
int ret = tscAllocPayload(pCmd, pDataBlock->nAllocSize + 100);
|
||||||
if (TSDB_CODE_SUCCESS != ret) {
|
if (TSDB_CODE_SUCCESS != ret) {
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
@ -613,7 +613,7 @@ int32_t tscCopyDataBlockToPayload(SSqlObj* pSql, STableDataBlocks* pDataBlock) {
|
||||||
*/
|
*/
|
||||||
pCmd->payloadLen = pDataBlock->nAllocSize - tsRpcHeadSize;
|
pCmd->payloadLen = pDataBlock->nAllocSize - tsRpcHeadSize;
|
||||||
|
|
||||||
assert(pCmd->allocSize >= pCmd->payloadLen + tsRpcHeadSize + sizeof(STaosDigest));
|
assert(pCmd->allocSize >= pCmd->payloadLen + tsRpcHeadSize + 100);
|
||||||
return TSDB_CODE_SUCCESS;
|
return TSDB_CODE_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -137,25 +137,25 @@ static uint32_t mgmtSetMeterTagValue(char *pTags, STabObj *pMetric, STabObj *pMe
|
||||||
return tagsLen;
|
return tagsLen;
|
||||||
}
|
}
|
||||||
|
|
||||||
static char *mgmtAllocMsg(SConnObj *pConn, int32_t size, char **pMsg, STaosRsp **pRsp) {
|
//static char *mgmtAllocMsg(SConnObj *pConn, int32_t size, char **pMsg, STaosRsp **pRsp) {
|
||||||
// char *pStart = taosBuildRspMsgWithSize(pConn->thandle, TSDB_MSG_TYPE_TABLE_META_RSP, size);
|
// char *pStart = taosBuildRspMsgWithSize(pConn->thandle, TSDB_MSG_TYPE_TABLE_META_RSP, size);
|
||||||
// if (pStart == NULL) return 0;
|
// if (pStart == NULL) return 0;
|
||||||
// *pMsg = pStart;
|
// *pMsg = pStart;
|
||||||
// *pRsp = (STaosRsp *)(*pMsg);
|
// *pRsp = (STaosRsp *)(*pMsg);
|
||||||
//
|
//
|
||||||
// return pStart;
|
// return pStart;
|
||||||
return 0;
|
// return 0;
|
||||||
}
|
//}
|
||||||
|
|
||||||
static char *mgmtForMultiAllocMsg(SConnObj *pConn, int32_t size, char **pMsg, STaosRsp **pRsp) {
|
//static char *mgmtForMultiAllocMsg(SConnObj *pConn, int32_t size, char **pMsg, STaosRsp **pRsp) {
|
||||||
// char *pStart = taosBuildRspMsgWithSize(pConn->thandle, TSDB_MSG_TYPE_MULTI_TABLE_META_RSP, size);
|
// char *pStart = taosBuildRspMsgWithSize(pConn->thandle, TSDB_MSG_TYPE_MULTI_TABLE_META_RSP, size);
|
||||||
// if (pStart == NULL) return 0;
|
// if (pStart == NULL) return 0;
|
||||||
// *pMsg = pStart;
|
// *pMsg = pStart;
|
||||||
// *pRsp = (STaosRsp *)(*pMsg);
|
// *pRsp = (STaosRsp *)(*pMsg);
|
||||||
//
|
//
|
||||||
// return pStart;
|
// return pStart;
|
||||||
return 0;
|
// return 0;
|
||||||
}
|
//}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* check if we need to add mgmtProcessMeterMetaMsg into tranQueue, which will be executed one-by-one.
|
* check if we need to add mgmtProcessMeterMetaMsg into tranQueue, which will be executed one-by-one.
|
||||||
|
|
Loading…
Reference in New Issue