Navigation Menu

Skip to content

Commit

Permalink
io: reduce scope
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jan 17, 2015
1 parent 1a948c3 commit ea534dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/io.c
Expand Up @@ -1136,9 +1136,9 @@ grn_io_expire(grn_ctx *ctx, grn_io *io, int count_thresh, uint32_t limit)
GRN_ATOMIC_ADD_EX(pnref, 1, nref);
if (!nref && grn_gtick - io->count > count_thresh) {
grn_io_mapinfo *info = io->maps;
grn_io_array_spec *array_specs = (grn_io_array_spec *)io->user_header;
{
uint32_t i = io->header->n_arrays;
grn_io_array_spec *array_specs = (grn_io_array_spec *)io->user_header;
while (i--) {
memset(io->ainfo[i].addrs, 0, sizeof(void *) * array_specs[i].max_n_segments);
}
Expand Down

0 comments on commit ea534dc

Please sign in to comment.