This commit is contained in:
Hongze Cheng 2022-02-08 09:15:12 +00:00
parent 73e32ddf77
commit 73f52e9be9
2 changed files with 2 additions and 0 deletions

View File

@ -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) {

View File

@ -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;
};