[Groonga-commit] groonga/groonga at ea534dc [master] io: reduce scope

Back to archive index

Kouhei Sutou null+****@clear*****
Sat Jan 17 17:21:55 JST 2015


Kouhei Sutou	2015-01-17 17:21:55 +0900 (Sat, 17 Jan 2015)

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

  Message:
    io: reduce scope

  Modified files:
    lib/io.c

  Modified: lib/io.c (+1 -1)
===================================================================
--- lib/io.c    2015-01-17 17:21:19 +0900 (64b1dda)
+++ lib/io.c    2015-01-17 17:21:55 +0900 (c33228d)
@@ -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);
           }
-------------- next part --------------
HTML����������������������������...
Descargar 



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