[Groonga-commit] groonga/groonga at addfda1 [master] select: fix a bug that output_pretty isn't used for cache key

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Feb 26 21:22:04 JST 2016


Kouhei Sutou	2016-02-26 21:22:04 +0900 (Fri, 26 Feb 2016)

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

  Message:
    select: fix a bug that output_pretty isn't used for cache key
    
    GitHub: #490
    
    Reported by KITAITI Makoto. Thanks!!!

  Modified files:
    lib/proc/proc_select.c

  Modified: lib/proc/proc_select.c (+4 -1)
===================================================================
--- lib/proc/proc_select.c    2016-02-26 21:18:47 +0900 (f745eea)
+++ lib/proc/proc_select.c    2016-02-26 21:22:04 +0900 (559e1e3)
@@ -573,7 +573,8 @@ grn_select(grn_ctx *ctx, const char *table, unsigned int table_len,
     match_escalation_threshold_len + 1 +
     query_expander_len + 1 + query_flags_len + 1 + adjuster_len + 1 +
     sizeof(grn_content_type) + sizeof(int) * 2 +
-    sizeof(grn_command_version);
+    sizeof(grn_command_version) +
+    sizeof(grn_bool);
   {
     unsigned int i;
     for (i = 0; i < n_drilldowns; i++) {
@@ -630,6 +631,8 @@ grn_select(grn_ctx *ctx, const char *table, unsigned int table_len,
     cp += sizeof(int);
     grn_memcpy(cp, &(ctx->impl->command_version), sizeof(grn_command_version));
     cp += sizeof(grn_command_version);
+    grn_memcpy(cp, &(ctx->impl->output.is_pretty), sizeof(grn_bool));
+    cp += sizeof(grn_bool);
     {
       unsigned int i;
       for (i = 0; i < n_drilldowns; i++) {
-------------- next part --------------
HTML����������������������������...
Télécharger 



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