fix(meta/tsdb cache): fix drop sub tables for super table

This commit is contained in:
Minglei Jin 2024-12-16 11:00:51 +08:00
parent 2b4046ecf8
commit 5b6136ec82
1 changed files with 6 additions and 1 deletions

View File

@ -1745,6 +1745,11 @@ static int32_t metaHandleSuperTableDrop(SMeta *pMeta, const SMetaEntry *pEntry)
return code;
}
if (tsdbCacheDropSubTables(pMeta->pVnode->pTsdb, childList, pEntry->uid) < 0) {
metaError("vgId:%d, failed to drop stb:%s uid:%" PRId64 " since %s", TD_VID(pMeta->pVnode), pEntry->name,
pEntry->uid, tstrerror(terrno));
}
// loop to drop all child tables
for (int32_t i = 0; i < taosArrayGetSize(childList); i++) {
SMetaEntry childEntry = {
@ -1859,4 +1864,4 @@ int32_t metaHandleEntry2(SMeta *pMeta, const SMetaEntry *pEntry) {
metaErr(vgId, code);
}
TAOS_RETURN(code);
}
}