From 91f966155035d476370f7a27eee4285a5c3163d0 Mon Sep 17 00:00:00 2001 From: Cary Xu Date: Mon, 11 Apr 2022 17:29:14 +0800 Subject: [PATCH] bug fix for bitmap compress --- source/dnode/vnode/src/tsdb/tsdbCommit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/dnode/vnode/src/tsdb/tsdbCommit.c b/source/dnode/vnode/src/tsdb/tsdbCommit.c index 67c7973206..eb32663387 100644 --- a/source/dnode/vnode/src/tsdb/tsdbCommit.c +++ b/source/dnode/vnode/src/tsdb/tsdbCommit.c @@ -1298,7 +1298,7 @@ int tsdbWriteBlockImpl(STsdb *pRepo, STable *pTable, SDFile *pDFile, SDFile *pDF int32_t tBitmaps = 0; int32_t tBitmapsLen = 0; if ((ncol != 0) && !TD_COL_ROWS_NORM(pBlockCol)) { - tBitmaps = sBitmaps; + tBitmaps = isSuper ? sBitmaps : nBitmaps; } #endif