fix: more code

This commit is contained in:
Hongze Cheng 2024-12-06 14:46:38 +08:00
parent 60ffaddc92
commit 4804ff63cc
3 changed files with 2 additions and 14 deletions

View File

@ -343,7 +343,7 @@ static int32_t metaHandleSuperTableCreateImpl(SMeta *pMeta, const SMetaEntry *pE
SMetaTableOp ops[] = {
{META_ENTRY_TABLE, META_TABLE_OP_INSERT}, //
{META_SCHEMA_TABLE, META_TABLE_OP_INSERT}, //
{META_SCHEMA_TABLE, META_TABLE_OP_UPDATA}, // TODO: here should be insert
{META_UID_IDX, META_TABLE_OP_INSERT}, //
{META_NAME_IDX, META_TABLE_OP_INSERT}, //
{META_SUID_IDX, META_TABLE_OP_INSERT}, //

View File

@ -437,6 +437,7 @@ _drop_super_table:
tstrerror(terrno));
}
metaCacheDrop(pMeta, pReq->suid);
ret = tdbTbDelete(pMeta->pUidIdx, &pReq->suid, sizeof(tb_uid_t), pMeta->txn);
if (ret < 0) {
metaError("vgId:%d, failed to drop stb:%s uid:%" PRId64 " since %s", TD_VID(pMeta->pVnode), pReq->name, pReq->suid,

View File

@ -66,19 +66,6 @@ static int32_t metaCheckCreateSuperTableReq(SMeta *pMeta, int64_t version, SVCre
return TSDB_CODE_INVALID_MSG;
}
// other fields
if (pReq->schemaRow.nCols <= 0) {
metaError("vgId:%d, %s failed at %s:%d since invalid row schema, version:%" PRId64, vgId, __func__, __FILE__,
__LINE__, version);
return TSDB_CODE_INVALID_MSG;
}
if (pReq->schemaTag.nCols <= 0) {
metaError("vgId:%d, %s failed at %s:%d since invalid tag schema, version:%" PRId64, vgId, __func__, __FILE__,
__LINE__, version);
return TSDB_CODE_INVALID_MSG;
}
return TSDB_CODE_SUCCESS;
}