diff --git a/CMakeLists.txt b/CMakeLists.txt index b34d995d3025db061498d72d2273bc4528586cba..6f50aca0797cb2d3a2b61796d43137fb417f76ee 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -37,8 +37,6 @@ IF (TD_WINDOWS OR TD_DARWIN) SET(TD_SOMODE_STATIC TRUE) ENDIF () -ADD_DEFINITIONS(-D_TD_COMMUNITY_VERSION) - INCLUDE(cmake/define.inc) INCLUDE(cmake/env.inc) INCLUDE(cmake/version.inc) diff --git a/src/mnode/src/mnodeDb.c b/src/mnode/src/mnodeDb.c index e6d82a65309329b702320f181aa4d34e5c9dcf1a..b0ac1192bb8a5545c1e8f731fb92a0d69538eb18 100644 --- a/src/mnode/src/mnodeDb.c +++ b/src/mnode/src/mnodeDb.c @@ -1062,7 +1062,7 @@ static SDbCfg mnodeGetAlterDbOption(SDbObj *pDb, SAlterDbMsg *pAlter) { // community version can only change daysToKeep // but enterprise version can change all daysToKeep options -#if defined(_TD_COMMUNITY_VERSION) && !defined(_TD_ENTERPRISE_VERSION) +#ifndef _STORAGE newCfg.daysToKeep1 = newCfg.daysToKeep; newCfg.daysToKeep2 = newCfg.daysToKeep; #endif