From 336f4500b9b7b76886cf1363ced79c712597fc22 Mon Sep 17 00:00:00 2001 From: Cary Xu Date: Wed, 2 Mar 2022 19:31:11 +0800 Subject: [PATCH] minor change --- source/dnode/vnode/src/tsdb/tsdbReadImpl.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/source/dnode/vnode/src/tsdb/tsdbReadImpl.c b/source/dnode/vnode/src/tsdb/tsdbReadImpl.c index 40cdcba697..f6827eaae1 100644 --- a/source/dnode/vnode/src/tsdb/tsdbReadImpl.c +++ b/source/dnode/vnode/src/tsdb/tsdbReadImpl.c @@ -427,7 +427,7 @@ void tsdbGetBlockStatis(SReadH *pReadh, SDataStatis *pStatis, int numOfCols, SBl for (int i = 0, j = 0; i < numOfCols;) { if (j >= pBlockData->numOfCols) { pStatis[i].numOfNull = -1; - i++; + ++i; continue; } @@ -438,13 +438,13 @@ void tsdbGetBlockStatis(SReadH *pReadh, SDataStatis *pStatis, int numOfCols, SBl pStatis[i].maxIndex = pBlockData->cols[j].maxIndex; pStatis[i].minIndex = pBlockData->cols[j].minIndex; pStatis[i].numOfNull = pBlockData->cols[j].numOfNull; - i++; - j++; + ++i; + ++j; } else if (pStatis[i].colId < pBlockData->cols[j].colId) { pStatis[i].numOfNull = -1; - i++; + ++i; } else { - j++; + ++j; } } #else @@ -454,7 +454,7 @@ void tsdbGetBlockStatis(SReadH *pReadh, SDataStatis *pStatis, int numOfCols, SBl for (int i = 0, j = 0; i < numOfCols;) { if (j >= pBlock->numOfCols) { pStatis[i].numOfNull = -1; - i++; + ++i; continue; } SAggrBlkCol *pAggrBlkCol = ((SAggrBlkCol *)(pAggrBlkData)) + j; @@ -465,13 +465,13 @@ void tsdbGetBlockStatis(SReadH *pReadh, SDataStatis *pStatis, int numOfCols, SBl pStatis[i].maxIndex = pAggrBlkCol->maxIndex; pStatis[i].minIndex = pAggrBlkCol->minIndex; pStatis[i].numOfNull = pAggrBlkCol->numOfNull; - i++; - j++; + ++i; + ++j; } else if (pStatis[i].colId < pAggrBlkCol->colId) { pStatis[i].numOfNull = -1; - i++; + ++i; } else { - j++; + ++j; } } }