提交 70752441 编写于 作者: H Hongze Cheng

more last file refact

上级 e827d0bb
...@@ -469,7 +469,8 @@ struct SColData { ...@@ -469,7 +469,8 @@ struct SColData {
}; };
struct SBlockData { struct SBlockData {
int64_t suid; int64_t suid; // 0 means normal table data block
int64_t uid; // 0 means block data in .last file, others in .data file
int32_t nRow; int32_t nRow;
int64_t *aUid; int64_t *aUid;
int64_t *aVersion; int64_t *aVersion;
......
...@@ -537,7 +537,7 @@ _err: ...@@ -537,7 +537,7 @@ _err:
int32_t tsdbReadBlockIdx(SDataFReader *pReader, SArray *aBlockIdx, uint8_t **ppBuf) { int32_t tsdbReadBlockIdx(SDataFReader *pReader, SArray *aBlockIdx, uint8_t **ppBuf) {
int32_t code = 0; int32_t code = 0;
int64_t offset = pReader->pSet->pHeadF->offset; int64_t offset = pReader->pSet->pHeadF->offset;
int64_t size = pReader->pSet->pHeadF->size - offset; int64_t size = pReader->pSet->pHeadF->loffset - offset;
uint8_t *pBuf = NULL; uint8_t *pBuf = NULL;
int64_t n; int64_t n;
uint32_t delimiter; uint32_t delimiter;
...@@ -604,7 +604,7 @@ _err: ...@@ -604,7 +604,7 @@ _err:
int32_t tsdbReadBlockL(SDataFReader *pReader, SArray *aBlockL, uint8_t **ppBuf) { int32_t tsdbReadBlockL(SDataFReader *pReader, SArray *aBlockL, uint8_t **ppBuf) {
int32_t code = 0; int32_t code = 0;
int64_t offset = pReader->pSet->pHeadF->loffset; int64_t offset = pReader->pSet->pHeadF->loffset;
int64_t size = pReader->pSet->pHeadF->offset - offset; int64_t size = pReader->pSet->pHeadF->size - offset;
int64_t n; int64_t n;
uint32_t delimiter; uint32_t delimiter;
uint8_t *pBuf = NULL; uint8_t *pBuf = NULL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册