[Groonga-commit] groonga/groonga [master] dat: use the same flags by obj and header

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Dec 18 15:19:20 JST 2012


Kouhei Sutou	2012-12-18 15:19:20 +0900 (Tue, 18 Dec 2012)

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

  Log:
    dat: use the same flags by obj and header

  Modified files:
    lib/dat.cpp

  Modified: lib/dat.cpp (+3 -1)
===================================================================
--- lib/dat.cpp    2012-12-18 15:18:28 +0900 (ca208f0)
+++ lib/dat.cpp    2012-12-18 15:19:20 +0900 (b5f7647)
@@ -279,7 +279,6 @@ grn_dat_create(grn_ctx *ctx, const char *path, uint32_t,
     return NULL;
   }
   grn_dat_init(ctx, dat);
-  dat->obj.header.flags = flags;
 
   dat->io = grn_io_create(ctx, path, sizeof(struct grn_dat_header),
                           4096, 0, grn_io_auto, GRN_IO_EXPIRE_SEGMENT);
@@ -312,6 +311,9 @@ grn_dat_create(grn_ctx *ctx, const char *path, uint32_t,
   }
   dat->encoding = encoding;
   dat->tokenizer = NULL;
+
+  dat->obj.header.flags = dat->header->flags;
+
   return dat;
 }
 
-------------- next part --------------
HTML����������������������������...
Download 



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