Skip to content

Commit 2774690

Browse files
authored
Merge pull request #19848 from taosdata/FIX/TD-22121-main
enh: set terrno as Invalid table ID while tdbTbGet suid failure in metaUpdateTagIdx
2 parents 50819c4 + 2330bf5 commit 2774690

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

source/dnode/vnode/src/meta/metaTable.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1343,6 +1343,9 @@ static int metaUpdateTagIdx(SMeta *pMeta, const SMetaEntry *pCtbEntry) {
13431343
int32_t ret = 0;
13441344
// get super table
13451345
if (tdbTbGet(pMeta->pUidIdx, &pCtbEntry->ctbEntry.suid, sizeof(tb_uid_t), &pData, &nData) != 0) {
1346+
metaError("vgId:%d, failed to get stable suid for update. version:%" PRId64, TD_VID(pMeta->pVnode),
1347+
pCtbEntry->version);
1348+
terrno = TSDB_CODE_TDB_INVALID_TABLE_ID;
13461349
ret = -1;
13471350
goto end;
13481351
}

0 commit comments

Comments
 (0)