fix: timeseries calculation when create table

This commit is contained in:
kailixu 2025-02-13 14:03:54 +08:00
parent 3eab0d7954
commit 61a606a410
2 changed files with 3 additions and 3 deletions

View File

@ -1214,7 +1214,7 @@ static int32_t metaHandleChildTableCreate(SMeta *pMeta, const SMetaEntry *pEntry
if (ret < 0) { if (ret < 0) {
metaErr(TD_VID(pMeta->pVnode), ret); metaErr(TD_VID(pMeta->pVnode), ret);
} }
pMeta->pVnode->config.vndStats.numOfNTimeSeries += (nCols - 1); pMeta->pVnode->config.vndStats.numOfTimeSeries += (nCols > 0 ? nCols - 1 : 0);
} }
if (!TSDB_CACHE_NO(pMeta->pVnode->config)) { if (!TSDB_CACHE_NO(pMeta->pVnode->config)) {

View File

@ -379,7 +379,7 @@ static int32_t metaCreateChildTable(SMeta *pMeta, int64_t version, SVCreateTbReq
} }
return code; return code;
#if 0 #if 1
metaTimeSeriesNotifyCheck(pMeta); metaTimeSeriesNotifyCheck(pMeta);
#endif #endif
} }
@ -489,7 +489,7 @@ static int32_t metaCreateNormalTable(SMeta *pMeta, int64_t version, SVCreateTbRe
__func__, __FILE__, __LINE__, tstrerror(code), pReq->uid, pReq->name, version); __func__, __FILE__, __LINE__, tstrerror(code), pReq->uid, pReq->name, version);
} }
TAOS_RETURN(code); TAOS_RETURN(code);
#if 0 #if 1
metaTimeSeriesNotifyCheck(pMeta); metaTimeSeriesNotifyCheck(pMeta);
#endif #endif
} }