X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/460b9539a7c15580e41a71bbc0f47ae776238915..fe5755370c53c05c091ced1c62525d17878ad7a9:/server/dump.c diff --git a/server/dump.c b/server/dump.c index 39af755..84b45d0 100644 --- a/server/dump.c +++ b/server/dump.c @@ -390,7 +390,7 @@ int main(int argc, char **argv) { char *tmp; FILE *fp; - mem_init(1); + mem_init(); while((n = getopt_long(argc, argv, "hVc:dDutsrRaP", options, 0)) >= 0) { switch(n) { case 'h': help(); @@ -423,9 +423,9 @@ int main(int argc, char **argv) { fatal(0, "specify only a dump file name"); path = argv[optind]; } - if(config_read()) fatal(0, "cannot read configuration"); + if(config_read(0)) fatal(0, "cannot read configuration"); trackdb_init(recover); - trackdb_open(); + trackdb_open(TRACKDB_NO_UPGRADE); if(dump) { /* we write to a temporary file and rename into place */ byte_xasprintf(&tmp, "%s.%lx.tmp", path, (unsigned long)getpid()); @@ -455,4 +455,3 @@ c-basic-offset:2 comment-column:40 End: */ -/* arch-tag:a446d6d9fcfbece4e3042e29c148a1cc */