[TD-161]
This commit is contained in:
parent
55e68f2fc8
commit
054d60fd44
|
@ -425,11 +425,10 @@ void tscTableMetaCallBack(void *param, TAOS_RES *res, int code) {
|
||||||
|
|
||||||
if ((pQueryInfo->type & TSDB_QUERY_TYPE_STABLE_SUBQUERY) == TSDB_QUERY_TYPE_STABLE_SUBQUERY) {
|
if ((pQueryInfo->type & TSDB_QUERY_TYPE_STABLE_SUBQUERY) == TSDB_QUERY_TYPE_STABLE_SUBQUERY) {
|
||||||
STableMetaInfo* pTableMetaInfo = tscGetMetaInfo(pQueryInfo, 0);
|
STableMetaInfo* pTableMetaInfo = tscGetMetaInfo(pQueryInfo, 0);
|
||||||
|
if (pTableMetaInfo->pTableMeta == NULL){
|
||||||
code = tscGetTableMeta(pSql, pTableMetaInfo);
|
code = tscGetTableMeta(pSql, pTableMetaInfo);
|
||||||
pRes->code = code;
|
assert(code == TSDB_CODE_SUCCESS);
|
||||||
|
}
|
||||||
if (code == TSDB_CODE_ACTION_IN_PROGRESS) return;
|
|
||||||
|
|
||||||
assert((tscGetNumOfTags(pTableMetaInfo->pTableMeta) != 0) && pTableMetaInfo->vgroupIndex >= 0 && pSql->param != NULL);
|
assert((tscGetNumOfTags(pTableMetaInfo->pTableMeta) != 0) && pTableMetaInfo->vgroupIndex >= 0 && pSql->param != NULL);
|
||||||
|
|
||||||
|
|
|
@ -265,10 +265,7 @@ void vnodeRelease(void *pVnodeRaw) {
|
||||||
int32_t vgId = pVnode->vgId;
|
int32_t vgId = pVnode->vgId;
|
||||||
|
|
||||||
int32_t refCount = atomic_sub_fetch_32(&pVnode->refCount, 1);
|
int32_t refCount = atomic_sub_fetch_32(&pVnode->refCount, 1);
|
||||||
if (refCount < 0) {
|
assert(refCount >= 0);
|
||||||
vTrace("vgId:%d, other thread is releasing vnode, refCount:%d", vgId, refCount);
|
|
||||||
return; // avoid two threads dec ref count
|
|
||||||
}
|
|
||||||
|
|
||||||
if (refCount > 0) {
|
if (refCount > 0) {
|
||||||
vTrace("vgId:%d, release vnode, refCount:%d", vgId, refCount);
|
vTrace("vgId:%d, release vnode, refCount:%d", vgId, refCount);
|
||||||
|
|
Loading…
Reference in New Issue