提交 35f1f9c1 编写于 作者: C Cary Xu

code optimization

上级 7499d3bc
......@@ -159,15 +159,7 @@ typedef struct {
SBlockCol cols[];
} SBlockData;
#if 0
typedef struct {
int32_t numOfCols; // For recovery usage
uint32_t padding;
SAggrBlkCol cols[];
} SAggrBlkData;
#endif
typedef void SAggrBlkData;
typedef void SAggrBlkData; // SBlockCol cols[];
struct SReadH {
STsdbRepo * pRepo;
......
......@@ -1188,7 +1188,6 @@ int tsdbWriteBlockImpl(STsdbRepo *pRepo, STable *pTable, SDFile *pDFile, SDFile
uint32_t aggrStatus = ((nColsNotAllNull > 0) && (rowsToWrite > 8)) ? 1 : 0; // TODO: How to make the decision?
if (aggrStatus > 0) {
// pAggrBlkData->numOfCols = nColsNotAllNull;
taosCalcChecksumAppend(0, (uint8_t *)pAggrBlkData, tsizeAggr);
tsdbUpdateDFileMagic(pDFileAggr, POINTER_SHIFT(pAggrBlkData, tsizeAggr - sizeof(TSCKSUM)));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册