Skip to content

Commit

Permalink
Update later parts to match earlier changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nilesr committed Apr 7, 2019
1 parent 84d1ede commit c3d5432
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _parts/part5.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ I'm renaming `new_table()` to `db_open()` because it now has the effect of openi
+ Pager* pager = pager_open(filename);
+ uint32_t num_rows = pager->file_length / ROW_SIZE;
+
Table* table = malloc(sizeof(Table));
Table* table = calloc(sizeof(Table));
- table->num_rows = 0;
+ table->pager = pager;
+ table->num_rows = num_rows;
Expand Down Expand Up @@ -413,7 +413,7 @@ Until then!
+ Pager* pager = pager_open(filename);
+ uint32_t num_rows = pager->file_length / ROW_SIZE;
+
Table* table = malloc(sizeof(Table));
Table* table = calloc(sizeof(Table));
- table->num_rows = 0;
+ table->pager = pager;
+ table->num_rows = num_rows;
Expand Down

0 comments on commit c3d5432

Please sign in to comment.