fix release crash issue
This commit is contained in:
parent
0111549155
commit
e8ab28bee1
|
@ -312,6 +312,9 @@ _return:
|
||||||
|
|
||||||
CTG_CACHE_STAT_INC(tbMetaMissNum, 1);
|
CTG_CACHE_STAT_INC(tbMetaMissNum, 1);
|
||||||
|
|
||||||
|
*pDb = NULL;
|
||||||
|
*pTb = NULL;
|
||||||
|
|
||||||
return TSDB_CODE_SUCCESS;
|
return TSDB_CODE_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -427,8 +430,6 @@ int32_t ctgReadTbMetaFromCache(SCatalog* pCtg, SCtgTbMetaCtx* ctx, STableMeta**
|
||||||
ctgDebug("Got ctb %s meta from cache, will continue to get its stb meta, type:%d, dbFName:%s",
|
ctgDebug("Got ctb %s meta from cache, will continue to get its stb meta, type:%d, dbFName:%s",
|
||||||
ctx->pName->tname, ctx->tbInfo.tbType, dbFName);
|
ctx->pName->tname, ctx->tbInfo.tbType, dbFName);
|
||||||
|
|
||||||
dbCache = NULL;
|
|
||||||
tbCache = NULL;
|
|
||||||
ctgAcquireStbMetaFromCache(pCtg, dbFName, ctx->tbInfo.suid, &dbCache, &tbCache);
|
ctgAcquireStbMetaFromCache(pCtg, dbFName, ctx->tbInfo.suid, &dbCache, &tbCache);
|
||||||
if (NULL == tbCache) {
|
if (NULL == tbCache) {
|
||||||
ctgReleaseTbMetaToCache(pCtg, dbCache, tbCache);
|
ctgReleaseTbMetaToCache(pCtg, dbCache, tbCache);
|
||||||
|
|
Loading…
Reference in New Issue