Navigation Menu

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 7b86c24 commit bb29092
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/io.c
Expand Up @@ -1111,7 +1111,8 @@ grn_io_seg_expire(grn_ctx *ctx, grn_io *io, uint32_t segno, uint32_t nretry)
}
} else {
uint32_t nmaps;
GRN_MUNMAP(&grn_gctx, io, &info->fmo, NULL,
fileinfo *fi = &(io->fis[segno]);
GRN_MUNMAP(&grn_gctx, io, &info->fmo, fi,
info->map, io->header->segment_size);
info->map = NULL;
GRN_ATOMIC_ADD_EX(pnref, -(GRN_IO_MAX_REF + 1), nref);
Expand Down

0 comments on commit bb29092

Please sign in to comment.