From: Michael Tremer Date: Tue, 12 Dec 2017 13:31:27 +0000 (+0000) Subject: database: Move string pool to the end of the file again X-Git-Tag: 0.9.0~170 X-Git-Url: http://git.ipfire.org/?p=people%2Fms%2Flibloc.git;a=commitdiff_plain;h=5df10c90415a660d463764b1c7a757f3275f4043 database: Move string pool to the end of the file again Signed-off-by: Michael Tremer --- diff --git a/src/database.c b/src/database.c index f51931a..9db875b 100644 --- a/src/database.c +++ b/src/database.c @@ -431,15 +431,15 @@ LOC_EXPORT int loc_database_write(struct loc_database* db, FILE* f) { loc_database_align_page_boundary(&offset, f); - // Write pool - r = loc_database_write_pool(db, &header, &offset, f); + // Write all ASes + r = loc_database_write_as_section(db, &header, &offset, f); if (r) return r; loc_database_align_page_boundary(&offset, f); - // Write all ASes - r = loc_database_write_as_section(db, &header, &offset, f); + // Write pool + r = loc_database_write_pool(db, &header, &offset, f); if (r) return r;