more code
This commit is contained in:
parent
d959ccb617
commit
f963f5bfcc
|
@ -1628,6 +1628,7 @@ int32_t tsdbOpenFile(const char *path, int32_t opt, STsdbFD *pFD) {
|
||||||
}
|
}
|
||||||
|
|
||||||
pFD->szPage = 4096;
|
pFD->szPage = 4096;
|
||||||
|
pFD->pgno = 0;
|
||||||
pFD->nBuf = 0;
|
pFD->nBuf = 0;
|
||||||
pFD->pBuf = taosMemoryMalloc(pFD->szPage);
|
pFD->pBuf = taosMemoryMalloc(pFD->szPage);
|
||||||
if (pFD->pBuf == NULL) {
|
if (pFD->pBuf == NULL) {
|
||||||
|
@ -1656,7 +1657,7 @@ _exit:
|
||||||
return code;
|
return code;
|
||||||
}
|
}
|
||||||
|
|
||||||
int32_t tsdbWriteFile(STsdbFD *pFD, uint8_t *pBuf, int32_t nBuf) {
|
int32_t tsdbWriteFile(STsdbFD *pFD, uint8_t *pBuf, int32_t nBuf, int64_t *offset) {
|
||||||
int32_t code = 0;
|
int32_t code = 0;
|
||||||
|
|
||||||
int32_t n = 0;
|
int32_t n = 0;
|
||||||
|
|
Loading…
Reference in New Issue