chiark / gitweb /
more thorough kvp.c testing
[disorder] / server / stats.c
index d34b0e4764404bdb1873f32dae0b30e942e8ae67..a12b8f66641065fb7eb880e5370064f10c4e0fdc 100644 (file)
@@ -27,6 +27,7 @@
 #include <pcre.h>
 #include <getopt.h>
 #include <syslog.h>
+#include <unistd.h>
 
 #include "defs.h"
 #include "mem.h"
@@ -94,8 +95,8 @@ int main(int argc, char **argv) {
   }
   if(config_read(0))
     fatal(0, "cannot read configuration");
-  trackdb_init(0);
-  trackdb_open();
+  trackdb_init(TRACKDB_NO_RECOVER);
+  trackdb_open(TRACKDB_NO_UPGRADE);
   stats = trackdb_stats(0);
   while(*stats)
     xprintf("%s\n", *stats++);