Differences From:
File
src/rebuild.c
part of check-in
[e00384d26d]
- Moved the core logic of both "rebuild_database" and "create_repository_cmd" into their own functions, for sharing with "reconstruct_cmd".
by
aku on
2007-08-29 02:42:24.
[view]
To:
File
src/rebuild.c
part of check-in
[ba486fec5a]
- Add the unclustered table and the M lines to manifests. Process
clusters in manifest_parse and manifest_crossref. The xfer process
still does not yet use clusters though so it is still compatible. But
that is about to change.
by
drh on
2007-09-03 01:28:57.
[view]
@@ -53,8 +53,12 @@
free(zTable);
}
db_multi_exec(zRepositorySchema2);
+ db_multi_exec("INSERT INTO unclustered SELECT rid FROM blob");
+ db_multi_exec(
+ "DELETE FROM config WHERE name IN ('remote-code', 'remote-maxid')"
+ );
db_prepare(&s, "SELECT rid, size FROM blob");
while( db_step(&s)==SQLITE_ROW ){
int rid = db_column_int(&s, 0);
int size = db_column_int(&s, 1);