]> git.sommitrealweird.co.uk Git - onak.git/commitdiff
Limit key dump files to 100,000 keys for "onak dump"
authorJonathan McDowell <noodles@earth.li>
Tue, 18 Aug 2009 16:38:28 +0000 (17:38 +0100)
committerJonathan McDowell <noodles@earth.li>
Tue, 18 Aug 2009 16:38:28 +0000 (17:38 +0100)
  Gives a file size of around 125M, which is a bit saner than > 1G

onak.c

diff --git a/onak.c b/onak.c
index 40e8b0e09277850b8beb4fa6c2465c16726f9efe..e6b92871ae57a1a4898712a80c06ef07bc869a00 100644 (file)
--- a/onak.c
+++ b/onak.c
@@ -161,7 +161,7 @@ int main(int argc, char *argv[])
        } else if (!strcmp("dump", argv[optind])) {
                config.dbbackend->initdb(true);
                dumpstate.count = dumpstate.filenum = 0;
        } else if (!strcmp("dump", argv[optind])) {
                config.dbbackend->initdb(true);
                dumpstate.count = dumpstate.filenum = 0;
-               dumpstate.maxcount = 1000000;
+               dumpstate.maxcount = 100000;
                dumpstate.fd = -1;
                dumpstate.filebase = "keydump.%d.pgp";
                config.dbbackend->iterate_keys(dump_func, &dumpstate);
                dumpstate.fd = -1;
                dumpstate.filebase = "keydump.%d.pgp";
                config.dbbackend->iterate_keys(dump_func, &dumpstate);