[TD-275] fix drop table error while query from super table
This commit is contained in:
parent
95df099a89
commit
3791b44188
|
@ -381,7 +381,7 @@ static void mgmtRemoveTableFromStable(SSuperTableObj *pStable, SChildTableObj *p
|
|||
if (pStable->vgHash == NULL) return;
|
||||
|
||||
SVgObj *pVgroup = mgmtGetVgroup(pCtable->vgId);
|
||||
if (pVgroup != NULL) {
|
||||
if (pVgroup == NULL) {
|
||||
taosHashRemove(pStable->vgHash, (char *)&pCtable->vgId, sizeof(pCtable->vgId));
|
||||
}
|
||||
mgmtDecVgroupRef(pVgroup);
|
||||
|
|
|
@ -290,7 +290,7 @@ void vnodeRelease(void *pVnodeRaw) {
|
|||
free(pVnode);
|
||||
|
||||
int32_t count = atomic_sub_fetch_32(&tsOpennedVnodes, 1);
|
||||
vTrace("vgId:%d, vnode is released, vnodes:%d", pVnode, vgId, count);
|
||||
vTrace("vgId:%d, vnode is released, vnodes:%d", vgId, count);
|
||||
|
||||
if (count <= 0) {
|
||||
taosCleanUpIntHash(tsDnodeVnodesHash);
|
||||
|
|
Loading…
Reference in New Issue