]> git.ipfire.org Git - people/ms/libloc.git/commitdiff
database: Move string pool to the end of the file again
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 12 Dec 2017 13:31:27 +0000 (13:31 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 12 Dec 2017 13:31:27 +0000 (13:31 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/database.c

index f51931a604df96227a622f10a0597801c1dd5346..9db875b87012e7e6327757b0ffb39006f42850ca 100644 (file)
@@ -431,15 +431,15 @@ LOC_EXPORT int loc_database_write(struct loc_database* db, FILE* f) {
 
        loc_database_align_page_boundary(&offset, 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);
 
        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;
 
        if (r)
                return r;