From 126a371170d019956b0ca881cdf979bbebf31e46 Mon Sep 17 00:00:00 2001 From: kailixu Date: Mon, 25 Sep 2023 16:24:03 +0800 Subject: [PATCH] chore: more code --- source/dnode/mgmt/mgmt_dnode/src/dmInt.c | 2 +- source/dnode/vnode/src/meta/metaTable.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/dnode/mgmt/mgmt_dnode/src/dmInt.c b/source/dnode/mgmt/mgmt_dnode/src/dmInt.c index 63cea5b5ef..fd9f4fccbe 100644 --- a/source/dnode/mgmt/mgmt_dnode/src/dmInt.c +++ b/source/dnode/mgmt/mgmt_dnode/src/dmInt.c @@ -20,7 +20,7 @@ static int32_t dmStartMgmt(SDnodeMgmt *pMgmt) { if (dmStartStatusThread(pMgmt) != 0) { return -1; } -#ifdef _GRANT +#if defined(TD_ENTERPRISE) && !defined(_TD_DARWIN_64) if (dmStartNotifyThread(pMgmt) != 0) { return -1; } diff --git a/source/dnode/vnode/src/meta/metaTable.c b/source/dnode/vnode/src/meta/metaTable.c index a72c215baa..f065fe3268 100644 --- a/source/dnode/vnode/src/meta/metaTable.c +++ b/source/dnode/vnode/src/meta/metaTable.c @@ -195,7 +195,7 @@ int metaDelJsonVarFromIdx(SMeta *pMeta, const SMetaEntry *pCtbEntry, const SSche } static inline void metaTimeSeriesNotifyCheck(SMeta *pMeta) { -#ifdef _GRANT +#if defined(TD_ENTERPRISE) && !defined(_TD_DARWIN_64) int64_t nTimeSeries = metaGetTimeSeriesNum(pMeta, 0); int64_t deltaTS = nTimeSeries - pMeta->pVnode->config.vndStats.numOfReportedTimeSeries; if (deltaTS > tsTimeSeriesThreshold) tsem_post(&dmNotifySem);