[Groonga-commit] groonga/groonga at 81d6ec7 [master] Don't run needless code

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Apr 7 22:55:41 JST 2015


Kouhei Sutou	2015-04-07 22:55:41 +0900 (Tue, 07 Apr 2015)

  New Revision: 81d6ec7c1998997fc6765d1a4bb172a64f846399
  https://github.com/groonga/groonga/commit/81d6ec7c1998997fc6765d1a4bb172a64f846399

  Message:
    Don't run needless code

  Modified files:
    lib/expr.c

  Modified: lib/expr.c (+4 -1)
===================================================================
--- lib/expr.c    2015-04-07 22:53:33 +0900 (5068d9e)
+++ lib/expr.c    2015-04-07 22:55:41 +0900 (389dc3a)
@@ -5065,7 +5065,10 @@ grn_table_select_index(grn_ctx *ctx, grn_obj *table, scan_info *si,
                                 GRN_BULK_HEAD(si->query),
                                 GRN_BULK_VSIZE(si->query));
           }
-          grn_ii_at(ctx, (grn_ii *)index, tid, (grn_hash *)res, si->logical_op);
+          if (tid != GRN_ID_NIL) {
+            grn_ii_at(ctx, (grn_ii *)index, tid, (grn_hash *)res,
+                      si->logical_op);
+          }
         }
         grn_ii_resolve_sel_and(ctx, (grn_hash *)res, si->logical_op);
         processed = GRN_TRUE;
-------------- next part --------------
HTML����������������������������...
Download 



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