projects
/
onak.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
efdb27e
)
Limit key dump files to 100,000 keys for "onak dump"
author
Jonathan McDowell
<noodles@earth.li>
Tue, 18 Aug 2009 16:38:28 +0000
(17:38 +0100)
committer
Jonathan 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
patch
|
blob
|
history
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;
- dumpstate.maxcount = 100000
0
;
+ dumpstate.maxcount = 100000;
dumpstate.fd = -1;
dumpstate.filebase = "keydump.%d.pgp";
config.dbbackend->iterate_keys(dump_func, &dumpstate);