[Groonga-commit] groonga/groonga at 88a8948 [master] Name magic number

Back to archive index

Kouhei Sutou null+****@clear*****
Sun May 31 17:54:45 JST 2015


Kouhei Sutou	2015-05-31 17:54:45 +0900 (Sun, 31 May 2015)

  New Revision: 88a894843d816511d9342ed7a329800deb8e6d79
  https://github.com/groonga/groonga/commit/88a894843d816511d9342ed7a329800deb8e6d79

  Message:
    Name magic number

  Modified files:
    lib/store.c

  Modified: lib/store.c (+1 -1)
===================================================================
--- lib/store.c    2015-05-31 17:48:58 +0900 (034f4f9)
+++ lib/store.c    2015-05-31 17:54:45 +0900 (d43ebb4)
@@ -47,7 +47,7 @@ _grn_ra_create(grn_ctx *ctx, grn_ra *ra, const char *path, unsigned int element_
   grn_io_set_type(io, GRN_COLUMN_FIX_SIZE);
   header->element_size = actual_size;
   n_elm = GRN_RA_SEGMENT_SIZE / header->element_size;
-  for (w_elm = 22; (1 << w_elm) > n_elm; w_elm--);
+  for (w_elm = GRN_RA_W_SEGMENT; (1 << w_elm) > n_elm; w_elm--);
   ra->io = io;
   ra->header = header;
   ra->element_mask =  n_elm - 1;
-------------- next part --------------
HTML����������������������������...
Download 



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