chore: code refactor
This commit is contained in:
parent
68fb1b296f
commit
0632fb838a
|
@ -20,7 +20,7 @@ static int32_t dmStartMgmt(SDnodeMgmt *pMgmt) {
|
||||||
if (dmStartStatusThread(pMgmt) != 0) {
|
if (dmStartStatusThread(pMgmt) != 0) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
#if defined(TD_ENTERPRISE) && !defined(_TD_DARWIN_64)
|
#ifdef _GRANT
|
||||||
if (dmStartNotifyThread(pMgmt) != 0) {
|
if (dmStartNotifyThread(pMgmt) != 0) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -195,7 +195,7 @@ int metaDelJsonVarFromIdx(SMeta *pMeta, const SMetaEntry *pCtbEntry, const SSche
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void metaTimeSeriesNotifyCheck(SMeta *pMeta) {
|
static inline void metaTimeSeriesNotifyCheck(SMeta *pMeta) {
|
||||||
#if defined(TD_ENTERPRISE) && !defined(_TD_DARWIN_64)
|
#ifdef _GRANT
|
||||||
int64_t nTimeSeries = metaGetTimeSeriesNum(pMeta, 0);
|
int64_t nTimeSeries = metaGetTimeSeriesNum(pMeta, 0);
|
||||||
int64_t deltaTS = nTimeSeries - pMeta->pVnode->config.vndStats.numOfReportedTimeSeries;
|
int64_t deltaTS = nTimeSeries - pMeta->pVnode->config.vndStats.numOfReportedTimeSeries;
|
||||||
if (deltaTS > tsTimeSeriesThreshold) tsem_post(&dmNotifySem);
|
if (deltaTS > tsTimeSeriesThreshold) tsem_post(&dmNotifySem);
|
||||||
|
|
Loading…
Reference in New Issue