Skip to content

Commit

Permalink
Don't run needless code
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Apr 7, 2015
1 parent 9f849a0 commit 81d6ec7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/expr.c
Expand Up @@ -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;
Expand Down

0 comments on commit 81d6ec7

Please sign in to comment.