[Groonga-commit] groonga/groonga at bb29092 [master] windows io: pass missing fileinfo to GRN_MUNMAP()

Back to archive index

Kouhei Sutou null+****@clear*****
Sat Jan 17 17:26:36 JST 2015


Kouhei Sutou	2015-01-17 17:26:36 +0900 (Sat, 17 Jan 2015)

  New Revision: bb290929deae72812cb93c300dd9611307c17f74
  https://github.com/groonga/groonga/commit/bb290929deae72812cb93c300dd9611307c17f74

  Message:
    windows io: pass missing fileinfo to GRN_MUNMAP()

  Modified files:
    lib/io.c

  Modified: lib/io.c (+2 -1)
===================================================================
--- lib/io.c    2015-01-17 17:24:41 +0900 (9b1cd36)
+++ lib/io.c    2015-01-17 17:26:36 +0900 (ea009e6)
@@ -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);
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index