提交 f3e2bef1 编写于 作者: C Cary Xu

other: adjust max duration for rsma

上级 c4bcb4e1
...@@ -16,8 +16,6 @@ ...@@ -16,8 +16,6 @@
#include "sma.h" #include "sma.h"
#include "tsdb.h" #include "tsdb.h"
#define RETENTION_DAYS_SPLIT_MAX (365 * 1440)
static int32_t smaEvalDays(SVnode *pVnode, SRetention *r, int8_t level, int8_t precision, int32_t duration); static int32_t smaEvalDays(SVnode *pVnode, SRetention *r, int8_t level, int8_t precision, int32_t duration);
static int32_t smaSetKeepCfg(SVnode *pVnode, STsdbKeepCfg *pKeepCfg, STsdbCfg *pCfg, int type); static int32_t smaSetKeepCfg(SVnode *pVnode, STsdbKeepCfg *pKeepCfg, STsdbCfg *pCfg, int type);
static int32_t rsmaRestore(SSma *pSma); static int32_t rsmaRestore(SSma *pSma);
...@@ -86,8 +84,8 @@ static int32_t smaEvalDays(SVnode *pVnode, SRetention *r, int8_t level, int8_t p ...@@ -86,8 +84,8 @@ static int32_t smaEvalDays(SVnode *pVnode, SRetention *r, int8_t level, int8_t p
days = keepDuration; days = keepDuration;
} }
if (days > RETENTION_DAYS_SPLIT_MAX) { if (days > TSDB_MAX_DURATION_PER_FILE) {
days = RETENTION_DAYS_SPLIT_MAX; days = TSDB_MAX_DURATION_PER_FILE;
} }
if (days < freqDuration) { if (days < freqDuration) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册