diff --git a/source/libs/tdb/src/db/pgfile.c b/source/libs/tdb/src/db/pgfile.c index 670fc3a667215f78ca11fa08b46e02678048498e..f7d4eef7994c17950f6bdaada0fdc3cc1f2b1332 100644 --- a/source/libs/tdb/src/db/pgfile.c +++ b/source/libs/tdb/src/db/pgfile.c @@ -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) { diff --git a/source/libs/tdb/src/inc/pgfile.h b/source/libs/tdb/src/inc/pgfile.h index e951d59da0f81c48fa2aeab03b354a7cd6492a04..ad59fc711c64066d687766ad072360321705ed70 100644 --- a/source/libs/tdb/src/inc/pgfile.h +++ b/source/libs/tdb/src/inc/pgfile.h @@ -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; };