fix:[TD-28025]return 0 if create table failed if stable not exist

This commit is contained in:
wangmm0220 2024-01-24 14:02:07 +08:00
parent 6e09164c3a
commit 7d3aa69740
1 changed files with 3 additions and 0 deletions

View File

@ -1005,6 +1005,9 @@ static int32_t taosCreateTable(TAOS* taos, void* meta, int32_t metaLen) {
}
}
if (taosHashGetSize(pVgroupHashmap) == 0) {
goto end;
}
SArray* pBufArray = serializeVgroupsCreateTableBatch(pVgroupHashmap);
if (NULL == pBufArray) {
code = TSDB_CODE_OUT_OF_MEMORY;