avoid invalid read/write
This commit is contained in:
parent
79ac1153ce
commit
e2465387c6
|
@ -2950,8 +2950,8 @@ static int32_t sysFilte__DbName(void* arg, SNode* pNode, SArray* result) {
|
||||||
static int32_t sysFilte__VgroupId(void* arg, SNode* pNode, SArray* result) {
|
static int32_t sysFilte__VgroupId(void* arg, SNode* pNode, SArray* result) {
|
||||||
void* pVnode = ((SSTabFltArg*)arg)->pVnode;
|
void* pVnode = ((SSTabFltArg*)arg)->pVnode;
|
||||||
|
|
||||||
int32_t vgId = 0;
|
int64_t vgId = 0;
|
||||||
vnodeGetInfo(pVnode, NULL, &vgId);
|
vnodeGetInfo(pVnode, NULL, (int32_t*)&vgId);
|
||||||
|
|
||||||
SOperatorNode* pOper = (SOperatorNode*)pNode;
|
SOperatorNode* pOper = (SOperatorNode*)pNode;
|
||||||
SValueNode* pVal = (SValueNode*)pOper->pRight;
|
SValueNode* pVal = (SValueNode*)pOper->pRight;
|
||||||
|
@ -2964,7 +2964,7 @@ static int32_t sysFilte__VgroupId(void* arg, SNode* pNode, SArray* result) {
|
||||||
int ret = func(&vgId, &pVal->datum.i, TSDB_DATA_TYPE_BIGINT);
|
int ret = func(&vgId, &pVal->datum.i, TSDB_DATA_TYPE_BIGINT);
|
||||||
if (ret == 0) return 0;
|
if (ret == 0) return 0;
|
||||||
|
|
||||||
return -1;
|
return -2;
|
||||||
}
|
}
|
||||||
static int32_t sysFilte__TableName(void* arg, SNode* pNode, SArray* result) {
|
static int32_t sysFilte__TableName(void* arg, SNode* pNode, SArray* result) {
|
||||||
void* pMeta = ((SSTabFltArg*)arg)->pMeta;
|
void* pMeta = ((SSTabFltArg*)arg)->pMeta;
|
||||||
|
|
Loading…
Reference in New Issue