[Groonga-commit] groonga/groonga at fe4df41 [master] Use the value is bigger than the previous min record id at first if there are multiple indexes

Back to archive index

Naoya Murakami null+****@clear*****
Tue Dec 27 19:28:12 JST 2016


Naoya Murakami	2016-12-27 19:28:12 +0900 (Tue, 27 Dec 2016)

  New Revision: fe4df41c1cca99bcaf5ecd6e7033b6beaecf8e73
  https://github.com/groonga/groonga/commit/fe4df41c1cca99bcaf5ecd6e7033b6beaecf8e73

  Merged 6142da4: Merge pull request #618 from naoa/ii-set-min-for-and-operator

  Message:
    Use the value is bigger than the previous min record id at first if there are multiple indexes
    
    The first index doesn't necessarily bigger than the previous min record id

  Modified files:
    lib/expr.c

  Modified: lib/expr.c (+2 -2)
===================================================================
--- lib/expr.c    2016-12-27 17:58:36 +0900 (6259980)
+++ lib/expr.c    2016-12-27 19:28:12 +0900 (23e37a2)
@@ -6733,8 +6733,8 @@ grn_table_select_index(grn_ctx *ctx, grn_obj *table, scan_info *si,
           }
           GRN_BULK_REWIND(&wv);
           if (min) {
-            if (previous_min < *optarg.min && (j == 0 || *optarg.min < *min)) {
-              *min = *optarg.min;
+            if (previous_min < current_min && (*min == previous_min || current_min < *min)) {
+              *min = current_min;
             }
           }
         }
-------------- next part --------------
HTML����������������������������...
Download 



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