Navigation Menu

Skip to content

Commit

Permalink
Fix macro name
Browse files Browse the repository at this point in the history
Normal index is inverted index.
  • Loading branch information
kou committed Feb 24, 2014
1 parent 36b4b25 commit 0421b9a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/db.c
Expand Up @@ -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;
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/db.h
Expand Up @@ -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)
Expand Down

0 comments on commit 0421b9a

Please sign in to comment.