chore: code revert
This commit is contained in:
parent
f16fa6d000
commit
57ceaed535
|
@ -125,7 +125,7 @@ int32_t metaUidFilterCachePut(void *pVnode, uint64_t suid, const void *pKey, in
|
||||||
int32_t payloadLen, double selectivityRatio);
|
int32_t payloadLen, double selectivityRatio);
|
||||||
tb_uid_t metaGetTableEntryUidByName(SMeta *pMeta, const char *name);
|
tb_uid_t metaGetTableEntryUidByName(SMeta *pMeta, const char *name);
|
||||||
int32_t metaGetCachedTbGroup(void *pVnode, tb_uid_t suid, const uint8_t *pKey, int32_t keyLen, SArray **pList);
|
int32_t metaGetCachedTbGroup(void *pVnode, tb_uid_t suid, const uint8_t *pKey, int32_t keyLen, SArray **pList);
|
||||||
int32_t metaPutTbGroupToCache(void *pVnode, uint64_t suid, const void *pKey, int32_t keyLen, void *pPayload,
|
int32_t metaPutTbGroupToCache(void* pVnode, uint64_t suid, const void *pKey, int32_t keyLen, void *pPayload,
|
||||||
int32_t payloadLen);
|
int32_t payloadLen);
|
||||||
bool metaTbInFilterCache(void *pVnode, tb_uid_t suid, int8_t type);
|
bool metaTbInFilterCache(void *pVnode, tb_uid_t suid, int8_t type);
|
||||||
int32_t metaPutTbToFilterCache(void *pVnode, tb_uid_t suid, int8_t type);
|
int32_t metaPutTbToFilterCache(void *pVnode, tb_uid_t suid, int8_t type);
|
||||||
|
|
|
@ -671,7 +671,6 @@ int64_t metaGetTbNum(SMeta *pMeta) {
|
||||||
|
|
||||||
// N.B. Called by statusReq per second
|
// N.B. Called by statusReq per second
|
||||||
int64_t metaGetTimeSeriesNum(SMeta *pMeta) {
|
int64_t metaGetTimeSeriesNum(SMeta *pMeta) {
|
||||||
fprintf(stderr, "@@@@@@@ %s:%d called @@@@@@@@@: vgId:%d, second:%d\n", __func__, __LINE__, TD_VID(pMeta->pVnode), taosGetTimestampSec());
|
|
||||||
// sum of (number of columns of stable - 1) * number of ctables (excluding timestamp column)
|
// sum of (number of columns of stable - 1) * number of ctables (excluding timestamp column)
|
||||||
if (pMeta->pVnode->config.vndStats.numOfTimeSeries <= 0 ||
|
if (pMeta->pVnode->config.vndStats.numOfTimeSeries <= 0 ||
|
||||||
++pMeta->pVnode->config.vndStats.itvTimeSeries % (60 * 5) == 0) {
|
++pMeta->pVnode->config.vndStats.itvTimeSeries % (60 * 5) == 0) {
|
||||||
|
|
|
@ -232,7 +232,7 @@ int metaCreateSTable(SMeta *pMeta, int64_t version, SVCreateStbReq *pReq) {
|
||||||
|
|
||||||
++pMeta->pVnode->config.vndStats.numOfSTables;
|
++pMeta->pVnode->config.vndStats.numOfSTables;
|
||||||
|
|
||||||
metaError("vgId:%d, stb:%s is created, suid:%" PRId64, TD_VID(pMeta->pVnode), pReq->name, pReq->suid);
|
metaDebug("vgId:%d, stb:%s is created, suid:%" PRId64, TD_VID(pMeta->pVnode), pReq->name, pReq->suid);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
@ -798,7 +798,7 @@ int metaCreateTable(SMeta *pMeta, int64_t ver, SVCreateTbReq *pReq, STableMetaRs
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
metaError("vgId:%d, table:%s uid %" PRId64 " is created, type:%" PRId8, TD_VID(pMeta->pVnode), pReq->name, pReq->uid,
|
metaDebug("vgId:%d, table:%s uid %" PRId64 " is created, type:%" PRId8, TD_VID(pMeta->pVnode), pReq->name, pReq->uid,
|
||||||
pReq->type);
|
pReq->type);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
|
|
@ -410,9 +410,9 @@ void vnodeResetLoad(SVnode *pVnode, SVnodeLoad *pLoad) {
|
||||||
"nBatchInsertSuccess");
|
"nBatchInsertSuccess");
|
||||||
}
|
}
|
||||||
|
|
||||||
void vnodeGetInfo(void *pVnode, const char **dbname, int32_t *vgId, int64_t *numOfTables, int64_t *numOfNormalTables) {
|
void vnodeGetInfo(void *pVnode, const char **dbname, int32_t *vgId, int64_t* numOfTables, int64_t* numOfNormalTables) {
|
||||||
SVnode *pVnodeObj = pVnode;
|
SVnode* pVnodeObj = pVnode;
|
||||||
SVnodeCfg *pConf = &pVnodeObj->config;
|
SVnodeCfg* pConf = &pVnodeObj->config;
|
||||||
|
|
||||||
if (dbname) {
|
if (dbname) {
|
||||||
*dbname = pConf->dbname;
|
*dbname = pConf->dbname;
|
||||||
|
@ -431,7 +431,7 @@ void vnodeGetInfo(void *pVnode, const char **dbname, int32_t *vgId, int64_t *num
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int32_t vnodeGetTableList(void *pVnode, int8_t type, SArray *pList) {
|
int32_t vnodeGetTableList(void* pVnode, int8_t type, SArray* pList) {
|
||||||
if (type == TSDB_SUPER_TABLE) {
|
if (type == TSDB_SUPER_TABLE) {
|
||||||
return vnodeGetStbIdList(pVnode, 0, pList);
|
return vnodeGetStbIdList(pVnode, 0, pList);
|
||||||
} else {
|
} else {
|
||||||
|
@ -555,7 +555,7 @@ static int32_t vnodeGetStbColumnNum(SVnode *pVnode, tb_uid_t suid, int *num) {
|
||||||
return TSDB_CODE_SUCCESS;
|
return TSDB_CODE_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef TD_ENTERPRISE
|
#ifdef TD_ENTERPRISE
|
||||||
#define TK_LOG_STB_NUM 19
|
#define TK_LOG_STB_NUM 19
|
||||||
static const char *tkLogStb[TK_LOG_STB_NUM] = {"cluster_info",
|
static const char *tkLogStb[TK_LOG_STB_NUM] = {"cluster_info",
|
||||||
"data_dir",
|
"data_dir",
|
||||||
|
@ -673,12 +673,12 @@ void *vnodeGetIdx(void *pVnode) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
return metaGetIdx(((SVnode *)pVnode)->pMeta);
|
return metaGetIdx(((SVnode*)pVnode)->pMeta);
|
||||||
}
|
}
|
||||||
|
|
||||||
void *vnodeGetIvtIdx(void *pVnode) {
|
void *vnodeGetIvtIdx(void *pVnode) {
|
||||||
if (pVnode == NULL) {
|
if (pVnode == NULL) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
return metaGetIvtIdx(((SVnode *)pVnode)->pMeta);
|
return metaGetIvtIdx(((SVnode*)pVnode)->pMeta);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue