[td-255] remove unused attributes of object.
This commit is contained in:
parent
ed04789a54
commit
5e5fe11f05
|
@ -234,7 +234,6 @@ typedef struct STableDataBlocks {
|
||||||
typedef struct {
|
typedef struct {
|
||||||
STableMeta *pTableMeta;
|
STableMeta *pTableMeta;
|
||||||
SArray *vgroupIdList;
|
SArray *vgroupIdList;
|
||||||
// SVgroupsInfo *pVgroupsInfo;
|
|
||||||
} STableMetaVgroupInfo;
|
} STableMetaVgroupInfo;
|
||||||
|
|
||||||
typedef struct SInsertStatementParam {
|
typedef struct SInsertStatementParam {
|
||||||
|
@ -286,20 +285,14 @@ typedef struct {
|
||||||
int32_t resColumnId;
|
int32_t resColumnId;
|
||||||
} SSqlCmd;
|
} SSqlCmd;
|
||||||
|
|
||||||
typedef struct SResRec {
|
|
||||||
int numOfRows;
|
|
||||||
int numOfTotal;
|
|
||||||
} SResRec;
|
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
int32_t numOfRows; // num of results in current retrieval
|
int32_t numOfRows; // num of results in current retrieval
|
||||||
int64_t numOfRowsGroup; // num of results of current group
|
|
||||||
int64_t numOfTotal; // num of total results
|
int64_t numOfTotal; // num of total results
|
||||||
int64_t numOfClauseTotal; // num of total result in current subclause
|
int64_t numOfClauseTotal; // num of total result in current subclause
|
||||||
char * pRsp;
|
char * pRsp;
|
||||||
int32_t rspType;
|
int32_t rspType;
|
||||||
int32_t rspLen;
|
int32_t rspLen;
|
||||||
uint64_t qId;
|
uint64_t qId; // query id of SQInfo
|
||||||
int64_t useconds;
|
int64_t useconds;
|
||||||
int64_t offset; // offset value from vnode during projection query of stable
|
int64_t offset; // offset value from vnode during projection query of stable
|
||||||
int32_t row;
|
int32_t row;
|
||||||
|
@ -307,8 +300,6 @@ typedef struct {
|
||||||
int16_t precision;
|
int16_t precision;
|
||||||
bool completed;
|
bool completed;
|
||||||
int32_t code;
|
int32_t code;
|
||||||
int32_t numOfGroups;
|
|
||||||
SResRec * pGroupRec;
|
|
||||||
char * data;
|
char * data;
|
||||||
TAOS_ROW tsrow;
|
TAOS_ROW tsrow;
|
||||||
TAOS_ROW urow;
|
TAOS_ROW urow;
|
||||||
|
@ -316,8 +307,7 @@ typedef struct {
|
||||||
char ** buffer; // Buffer used to put multibytes encoded using unicode (wchar_t)
|
char ** buffer; // Buffer used to put multibytes encoded using unicode (wchar_t)
|
||||||
SColumnIndex* pColumnIndex;
|
SColumnIndex* pColumnIndex;
|
||||||
|
|
||||||
TAOS_FIELD* final;
|
TAOS_FIELD* final;
|
||||||
SArithmeticSupport *pArithSup; // support the arithmetic expression calculation on agg functions
|
|
||||||
struct SGlobalMerger *pMerger;
|
struct SGlobalMerger *pMerger;
|
||||||
} SSqlRes;
|
} SSqlRes;
|
||||||
|
|
||||||
|
@ -377,7 +367,6 @@ typedef struct SSqlObj {
|
||||||
tsem_t rspSem;
|
tsem_t rspSem;
|
||||||
SSqlCmd cmd;
|
SSqlCmd cmd;
|
||||||
SSqlRes res;
|
SSqlRes res;
|
||||||
bool isBind;
|
|
||||||
|
|
||||||
SSubqueryState subState;
|
SSubqueryState subState;
|
||||||
struct SSqlObj **pSubs;
|
struct SSqlObj **pSubs;
|
||||||
|
|
|
@ -1491,7 +1491,6 @@ TAOS_STMT* taos_stmt_init(TAOS* taos) {
|
||||||
pSql->signature = pSql;
|
pSql->signature = pSql;
|
||||||
pSql->pTscObj = pObj;
|
pSql->pTscObj = pObj;
|
||||||
pSql->maxRetry = TSDB_MAX_REPLICA;
|
pSql->maxRetry = TSDB_MAX_REPLICA;
|
||||||
pSql->isBind = true;
|
|
||||||
pStmt->pSql = pSql;
|
pStmt->pSql = pSql;
|
||||||
pStmt->last = STMT_INIT;
|
pStmt->last = STMT_INIT;
|
||||||
|
|
||||||
|
|
|
@ -2879,7 +2879,6 @@ static void tscAllDataRetrievedFromDnode(SRetrieveSupport *trsupport, SSqlObj* p
|
||||||
pParentSql->res.precision = pSql->res.precision;
|
pParentSql->res.precision = pSql->res.precision;
|
||||||
pParentSql->res.numOfRows = 0;
|
pParentSql->res.numOfRows = 0;
|
||||||
pParentSql->res.row = 0;
|
pParentSql->res.row = 0;
|
||||||
pParentSql->res.numOfGroups = 0;
|
|
||||||
|
|
||||||
tscFreeRetrieveSup(pSql);
|
tscFreeRetrieveSup(pSql);
|
||||||
|
|
||||||
|
|
|
@ -1347,14 +1347,7 @@ static void tscDestroyResPointerInfo(SSqlRes* pRes) {
|
||||||
tfree(pRes->buffer);
|
tfree(pRes->buffer);
|
||||||
tfree(pRes->urow);
|
tfree(pRes->urow);
|
||||||
|
|
||||||
tfree(pRes->pGroupRec);
|
|
||||||
tfree(pRes->pColumnIndex);
|
tfree(pRes->pColumnIndex);
|
||||||
|
|
||||||
if (pRes->pArithSup != NULL) {
|
|
||||||
tfree(pRes->pArithSup->data);
|
|
||||||
tfree(pRes->pArithSup);
|
|
||||||
}
|
|
||||||
|
|
||||||
tfree(pRes->final);
|
tfree(pRes->final);
|
||||||
|
|
||||||
pRes->data = NULL; // pRes->data points to the buffer of pRsp, no need to free
|
pRes->data = NULL; // pRes->data points to the buffer of pRsp, no need to free
|
||||||
|
@ -3464,13 +3457,9 @@ STableMetaInfo* tscAddTableMetaInfo(SQueryInfo* pQueryInfo, SName* name, STableM
|
||||||
}
|
}
|
||||||
|
|
||||||
pTableMetaInfo->pTableMeta = pTableMeta;
|
pTableMetaInfo->pTableMeta = pTableMeta;
|
||||||
if (pTableMetaInfo->pTableMeta == NULL) {
|
pTableMetaInfo->tableMetaSize = (pTableMetaInfo->pTableMeta == NULL)? 0:tscGetTableMetaSize(pTableMeta);
|
||||||
pTableMetaInfo->tableMetaSize = 0;
|
|
||||||
} else {
|
|
||||||
pTableMetaInfo->tableMetaSize = tscGetTableMetaSize(pTableMeta);
|
|
||||||
}
|
|
||||||
pTableMetaInfo->tableMetaCapacity = (size_t)(pTableMetaInfo->tableMetaSize);
|
|
||||||
|
|
||||||
|
pTableMetaInfo->tableMetaCapacity = (size_t)(pTableMetaInfo->tableMetaSize);
|
||||||
|
|
||||||
if (vgroupList != NULL) {
|
if (vgroupList != NULL) {
|
||||||
pTableMetaInfo->vgroupList = tscVgroupInfoClone(vgroupList);
|
pTableMetaInfo->vgroupList = tscVgroupInfoClone(vgroupList);
|
||||||
|
@ -3718,8 +3707,8 @@ SSqlObj* createSubqueryObj(SSqlObj* pSql, int16_t tableIndex, __async_cb_func_t
|
||||||
terrno = TSDB_CODE_TSC_OUT_OF_MEMORY;
|
terrno = TSDB_CODE_TSC_OUT_OF_MEMORY;
|
||||||
goto _error;
|
goto _error;
|
||||||
}
|
}
|
||||||
pNewQueryInfo->numOfFillVal = pQueryInfo->fieldsInfo.numOfOutput;
|
|
||||||
|
|
||||||
|
pNewQueryInfo->numOfFillVal = pQueryInfo->fieldsInfo.numOfOutput;
|
||||||
memcpy(pNewQueryInfo->fillVal, pQueryInfo->fillVal, pQueryInfo->fieldsInfo.numOfOutput * sizeof(int64_t));
|
memcpy(pNewQueryInfo->fillVal, pQueryInfo->fillVal, pQueryInfo->fieldsInfo.numOfOutput * sizeof(int64_t));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue