提交 73f52e9b 编写于 作者: H Hongze Cheng

more TDB

上级 73e32ddf
......@@ -36,6 +36,7 @@ int pgFileOpen(const char *fname, SPgCache *pPgCache, SPgFile **ppPgFile) {
}
pPgFile->pPgCache = pPgCache;
// pPgFile->pgSize = ; (TODO)
pPgFile->fd = open(fname, O_RDWR, 0755);
if (pPgFile->fd < 0) {
......
......@@ -25,6 +25,7 @@ struct SPgFile {
char * fname; // backend file name
uint8_t fileid[TDB_FILE_ID_LEN]; // file id
SPgCache *pPgCache; // page cache underline
pgsize_t pgSize;
int fd;
pgno_t pgFileSize;
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册