[Groonga-commit] groonga/groonga at 754eee5 [master] select: change query log format for "drilldown" output

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Feb 21 14:47:23 JST 2017


Kouhei Sutou	2017-02-21 14:47:23 +0900 (Tue, 21 Feb 2017)

  New Revision: 754eee58554c00a9103617721edb7f8c5323ccf6
  https://github.com/groonga/groonga/commit/754eee58554c00a9103617721edb7f8c5323ccf6

  Message:
    select: change query log format for "drilldown" output
    
    This is backward incompatible change. We should hear from users whether
    this change is acceptable or not before we release a new release.
    
    Before:
    
        drilldown(N)
        drilldown(N)[LABEL]
    
    After:
    
        output.drilldown(N)
        output.drilldowns[LABEL](N)

  Modified files:
    lib/proc/proc_select.c

  Modified: lib/proc/proc_select.c (+4 -4)
===================================================================
--- lib/proc/proc_select.c    2017-02-21 14:47:06 +0900 (3f1668e)
+++ lib/proc/proc_select.c    2017-02-21 14:47:23 +0900 (28d4544)
@@ -2613,13 +2613,13 @@ grn_select_output_drilldowns(grn_ctx *ctx,
 
     if (is_labeled) {
       GRN_QUERY_LOG(ctx, GRN_QUERY_LOG_SIZE,
-                    ":", "drilldown(%d)[%.*s]",
-                    n_hits,
+                    ":", "output.drilldowns[%.*s](%d)",
                     (int)(drilldown->label.length),
-                    drilldown->label.value);
+                    drilldown->label.value,
+                    n_hits);
     } else {
       GRN_QUERY_LOG(ctx, GRN_QUERY_LOG_SIZE,
-                    ":", "drilldown(%d)", n_hits);
+                    ":", "output.drilldown(%d)", n_hits);
     }
   } GRN_HASH_EACH_END(ctx, cursor);
 
-------------- next part --------------
HTML����������������������������...
Télécharger 



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