[Groonga-commit] groonga/groonga at 0421b9a [master] Fix macro name

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Feb 24 10:23:57 JST 2014


Kouhei Sutou	2014-02-24 10:23:57 +0900 (Mon, 24 Feb 2014)

  New Revision: 0421b9a95914fc3756996e397ef2dca9ce608a7c
  https://github.com/groonga/groonga/commit/0421b9a95914fc3756996e397ef2dca9ce608a7c

  Message:
    Fix macro name
    
    Normal index is inverted index.

  Modified files:
    lib/db.c
    lib/db.h

  Modified: lib/db.c (+1 -1)
===================================================================
--- lib/db.c    2014-02-21 16:24:20 +0900 (d8e1557)
+++ lib/db.c    2014-02-24 10:23:57 +0900 (e95c21f)
@@ -2760,7 +2760,7 @@ grn_obj_search_accessor(grn_ctx *ctx, grn_obj *obj, grn_obj *query,
   n_accessors = 0;
   for (a = (grn_accessor *)obj; a; a = a->next) {
     n_accessors++;
-    if (GRN_OBJ_NORMAL_INDEX_COLUMNP(a->obj)) {
+    if (GRN_OBJ_INVERTED_INDEX_COLUMNP(a->obj)) {
       break;
     }
   }

  Modified: lib/db.h (+1 -1)
===================================================================
--- lib/db.h    2014-02-21 16:24:20 +0900 (e3e6954)
+++ lib/db.h    2014-02-24 10:23:57 +0900 (c7f5676)
@@ -143,7 +143,7 @@ struct _grn_type {
    (GRN_TABLE_HASH_KEY <= ((grn_db_obj *)obj)->header.type) &&\
    (((grn_db_obj *)obj)->header.type <= GRN_DB))
 
-#define GRN_OBJ_NORMAL_INDEX_COLUMNP(obj) \
+#define GRN_OBJ_INVERTED_INDEX_COLUMNP(obj) \
   (obj &&\
    DB_OBJ(obj)->header.type == GRN_COLUMN_INDEX &&\
    DB_OBJ(obj)->source_size > 0)
-------------- next part --------------
HTML����������������������������...
Descargar 



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