[Groonga-commit] groonga/groonga [master] Add index available action check

Zurück zum Archiv-Index

Kouhei Sutou null+****@clear*****
Mon Jan 21 18:07:15 JST 2013


Kouhei Sutou	2013-01-21 18:07:15 +0900 (Mon, 21 Jan 2013)

  New Revision: 6c83dcf17edc8ffefc2947b269aca515b5dc4b8a
  https://github.com/groonga/groonga/commit/6c83dcf17edc8ffefc2947b269aca515b5dc4b8a

  Log:
    Add index available action check
    
    For example, GRN_ACCESSOR_GET_SCORE action can't use index.

  Modified files:
    lib/db.c

  Modified: lib/db.c (+4 -0)
===================================================================
--- lib/db.c    2013-01-21 17:56:26 +0900 (95c4e76)
+++ lib/db.c    2013-01-21 18:07:15 +0900 (24c56ca)
@@ -7907,6 +7907,10 @@ grn_column_index_accessor(grn_ctx *ctx, grn_obj *obj, grn_operator op,
       break;
     }
 
+    if (entry == -1) {
+      break;
+    }
+
     for (hooks = DB_OBJ(a->obj)->hooks[entry]; hooks; hooks = hooks->next) {
       default_set_value_hook_data *data = (void *)NEXT_ADDR(hooks);
       grn_obj *target = grn_ctx_at(ctx, data->target);
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Zurück zum Archiv-Index