Skip to content

Commit

Permalink
windows io: pass missing fileinfo to GRN_MUNMAP()
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jan 17, 2015
1 parent ef83799 commit 7b86c24
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/io.c
Expand Up @@ -1143,10 +1143,12 @@ grn_io_expire(grn_ctx *ctx, grn_io *io, int count_thresh, uint32_t limit)
}
}
{
grn_io_mapinfo *info = io->maps;
for (m = io->max_map_seg; m; info++, m--) {
uint32_t fno;
for (fno = 0; fno < io->max_map_seg; fno++) {
grn_io_mapinfo *info = &(io->maps[fno]);
if (info->map) {
GRN_MUNMAP(&grn_gctx, io, &info->fmo, NULL,
fileinfo *fi = &(io->fis[fno]);
GRN_MUNMAP(&grn_gctx, io, &info->fmo, fi,
info->map, io->header->segment_size);
info->map = NULL;
info->nref = 0;
Expand Down

0 comments on commit 7b86c24

Please sign in to comment.