From e58afd12e13283986c91ca3d3ec5ccd6f1aa675e Mon Sep 17 00:00:00 2001 From: dapan1121 Date: Wed, 22 Mar 2023 17:42:09 +0800 Subject: [PATCH] fix: merge main to 3.0 --- source/dnode/vnode/src/tsdb/tsdbRead.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/dnode/vnode/src/tsdb/tsdbRead.c b/source/dnode/vnode/src/tsdb/tsdbRead.c index 253680870c..30ae83e1f2 100644 --- a/source/dnode/vnode/src/tsdb/tsdbRead.c +++ b/source/dnode/vnode/src/tsdb/tsdbRead.c @@ -4768,7 +4768,7 @@ int32_t tsdbGetFileBlocksDistInfo(STsdbReader* pReader, STableBlockDistInfo* pTa pTableBlockInfo->defMinRows = pc->minRows; pTableBlockInfo->defMaxRows = pc->maxRows; - int32_t bucketRange = ceil(((double)(pc->maxRows - pc->minRows)) / numOfBucket); + int32_t bucketRange = ceil(((pc->maxRows - pc->minRows)) / numOfBuckets); pTableBlockInfo->numOfFiles += 1; -- GitLab