summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
d3e43ff)
We weren't incrementing the key count so everything went into a
single file instead of limiting the file size.
state = (struct dump_ctx *) ctx;
state = (struct dump_ctx *) ctx;
- if (state->fd == -1 || state->count > state->maxcount) {
+ if (state->fd == -1 || state->count++ > state->maxcount) {
if (state->fd != -1) {
close(state->fd);
state->fd = -1;
if (state->fd != -1) {
close(state->fd);
state->fd = -1;