1
0
mirror of https://github.com/fumiama/fumidb.git synced 2026-06-12 22:40:29 +08:00

finish load table

This commit is contained in:
源文雨
2022-05-03 23:45:45 +08:00
parent fae3641fab
commit ef435631cb
7 changed files with 110 additions and 25 deletions

View File

@@ -24,7 +24,7 @@ int main() {
perror("create");
return 1;
}
if(init_file_header_page(fd) < 0) return 2;
if(init_file_header_page(fd)) return 2;
for(int i = 0; i < 16; i++) {
void* page = alloc_page(fd, nullpages[i]);
if(page == NULL) {