提交 3ac7f05f 编写于 作者: L lichuang

[TD-3963]add community version macro in cmakefile,change keep option base on version

上级 d7d38d88
......@@ -37,6 +37,8 @@ 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)
......
......@@ -1060,6 +1060,13 @@ static SDbCfg mnodeGetAlterDbOption(SDbObj *pDb, SAlterDbMsg *pAlter) {
newCfg.partitions = partitions;
}
// community version can only change daysToKeep
// but enterprise version can change all daysToKeep options
#if defined(_TD_COMMUNITY_VERSION) && !defined(_TD_ENTERPRISE_VERSION)
newCfg.daysToKeep1 = newCfg.daysToKeep;
newCfg.daysToKeep2 = newCfg.daysToKeep;
#endif
return newCfg;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册