From 7865bbbc7fa19e732674756d7b44eb46ecfd43a1 Mon Sep 17 00:00:00 2001 From: shenglian zhou Date: Fri, 22 Oct 2021 10:45:22 +0800 Subject: [PATCH] :remove clamp timestamp since 36500days makes it unnecessary --- src/tsdb/src/tsdbMemTable.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/tsdb/src/tsdbMemTable.c b/src/tsdb/src/tsdbMemTable.c index 3ac49286e7..d43385cd7c 100644 --- a/src/tsdb/src/tsdbMemTable.c +++ b/src/tsdb/src/tsdbMemTable.c @@ -648,9 +648,6 @@ static int tsdbScanAndConvertSubmitMsg(STsdbRepo *pRepo, SSubmitMsg *pMsg) { TSKEY minKey = now - tsTickPerDay[pRepo->config.precision] * pRepo->config.keep; TSKEY maxKey = now + tsTickPerDay[pRepo->config.precision] * pRepo->config.daysPerFile; - if (minKey >= now) minKey = MIN_TS_KEY; - if (maxKey <= now) maxKey = MAX_TS_KEY; - terrno = TSDB_CODE_SUCCESS; pMsg->length = htonl(pMsg->length); pMsg->numOfBlocks = htonl(pMsg->numOfBlocks); -- GitLab