fix: more code
This commit is contained in:
parent
60ffaddc92
commit
4804ff63cc
|
@ -343,7 +343,7 @@ static int32_t metaHandleSuperTableCreateImpl(SMeta *pMeta, const SMetaEntry *pE
|
||||||
|
|
||||||
SMetaTableOp ops[] = {
|
SMetaTableOp ops[] = {
|
||||||
{META_ENTRY_TABLE, META_TABLE_OP_INSERT}, //
|
{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_UID_IDX, META_TABLE_OP_INSERT}, //
|
||||||
{META_NAME_IDX, META_TABLE_OP_INSERT}, //
|
{META_NAME_IDX, META_TABLE_OP_INSERT}, //
|
||||||
{META_SUID_IDX, META_TABLE_OP_INSERT}, //
|
{META_SUID_IDX, META_TABLE_OP_INSERT}, //
|
||||||
|
|
|
@ -437,6 +437,7 @@ _drop_super_table:
|
||||||
tstrerror(terrno));
|
tstrerror(terrno));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
metaCacheDrop(pMeta, pReq->suid);
|
||||||
ret = tdbTbDelete(pMeta->pUidIdx, &pReq->suid, sizeof(tb_uid_t), pMeta->txn);
|
ret = tdbTbDelete(pMeta->pUidIdx, &pReq->suid, sizeof(tb_uid_t), pMeta->txn);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
metaError("vgId:%d, failed to drop stb:%s uid:%" PRId64 " since %s", TD_VID(pMeta->pVnode), pReq->name, pReq->suid,
|
metaError("vgId:%d, failed to drop stb:%s uid:%" PRId64 " since %s", TD_VID(pMeta->pVnode), pReq->name, pReq->suid,
|
||||||
|
|
|
@ -66,19 +66,6 @@ static int32_t metaCheckCreateSuperTableReq(SMeta *pMeta, int64_t version, SVCre
|
||||||
return TSDB_CODE_INVALID_MSG;
|
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;
|
return TSDB_CODE_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue