more change
This commit is contained in:
parent
c941ad58ee
commit
a705ee476c
|
@ -33,11 +33,10 @@ static int32_t tsdbUpgradeHead(STsdb *tsdb, SDFileSet *pDFileSet, SDataFReader *
|
||||||
// init
|
// init
|
||||||
struct {
|
struct {
|
||||||
// config
|
// config
|
||||||
int32_t maxRow;
|
int32_t maxRow;
|
||||||
int8_t cmprAlg;
|
int8_t cmprAlg;
|
||||||
int32_t szPage;
|
int32_t szPage;
|
||||||
uint8_t *bufArr[8];
|
SBuffer buffers[10];
|
||||||
SBuffer *buffers;
|
|
||||||
// reader
|
// reader
|
||||||
SArray *aBlockIdx;
|
SArray *aBlockIdx;
|
||||||
SMapData mDataBlk[1];
|
SMapData mDataBlk[1];
|
||||||
|
@ -172,8 +171,8 @@ _exit:
|
||||||
tBlockDataDestroy(ctx->blockData);
|
tBlockDataDestroy(ctx->blockData);
|
||||||
tMapDataClear(ctx->mDataBlk);
|
tMapDataClear(ctx->mDataBlk);
|
||||||
taosArrayDestroy(ctx->aBlockIdx);
|
taosArrayDestroy(ctx->aBlockIdx);
|
||||||
for (int32_t i = 0; i < ARRAY_SIZE(ctx->bufArr); ++i) {
|
for (int32_t i = 0; i < ARRAY_SIZE(ctx->buffers); ++i) {
|
||||||
tFree(ctx->bufArr[i]);
|
tBufferDestroy(ctx->buffers + i);
|
||||||
}
|
}
|
||||||
return code;
|
return code;
|
||||||
}
|
}
|
||||||
|
@ -454,7 +453,7 @@ static int32_t tsdbDumpTombDataToFSet(STsdb *tsdb, SDelFReader *reader, SArray *
|
||||||
int32_t maxRow;
|
int32_t maxRow;
|
||||||
int64_t minKey;
|
int64_t minKey;
|
||||||
int64_t maxKey;
|
int64_t maxKey;
|
||||||
SBuffer buffers[8];
|
SBuffer buffers[10];
|
||||||
// reader
|
// reader
|
||||||
SArray *aDelData;
|
SArray *aDelData;
|
||||||
// writer
|
// writer
|
||||||
|
|
Loading…
Reference in New Issue