[Groonga-commit] groonga/groonga at ee7b283 [master] select: log load status as query log

Back to archive index
Kouhei Sutou null+****@clear*****
Mon Mar 18 09:51:27 JST 2019


Kouhei Sutou	2019-03-18 09:51:27 +0900 (Mon, 18 Mar 2019)

  Revision: ee7b283fa3790d3b0e4b75286abcb860b3b49240
  https://github.com/groonga/groonga/commit/ee7b283fa3790d3b0e4b75286abcb860b3b49240

  Message:
    select: log load status as query log

  Modified files:
    lib/proc/proc_select.c
    test/command/suite/select/load_table/key.expected

  Modified: lib/proc/proc_select.c (+6 -1)
===================================================================
--- lib/proc/proc_select.c    2019-03-18 09:48:57 +0900 (3f25004e2)
+++ lib/proc/proc_select.c    2019-03-18 09:51:27 +0900 (1c6170ebc)
@@ -1995,7 +1995,12 @@ grn_select_load(grn_ctx *ctx,
   }
 
   GRN_QUERY_LOG(ctx, GRN_QUERY_LOG_SIZE,
-                ":", "load(%d)", grn_table_size(ctx, data->tables.result));
+                ":",
+                "load(%d): [%.*s][%d]",
+                grn_table_size(ctx, data->tables.result),
+                (int)(data->load.table.length),
+                data->load.table.value,
+                grn_table_size(ctx, table));
 
 exit :
   if (output_columns) {

  Modified: test/command/suite/select/load_table/key.expected (+1 -1)
===================================================================
--- test/command/suite/select/load_table/key.expected    2019-03-18 09:48:57 +0900 (82a41fd7a)
+++ test/command/suite/select/load_table/key.expected    2019-03-18 09:51:27 +0900 (7b4aa5def)
@@ -55,7 +55,7 @@ select   Logs   --load_table LoadedLogs   --load_columns "_key, original_id, tim
 ]
 #>select --limit "0" --load_columns "_key, original_id, timestamp_text" --load_table "LoadedLogs" --load_values "cast_loose(ShortText, timestamp, '') + ':' + _id, _id, timestamp" --table "Logs"
 #:000000000000000 select(3)
-#:000000000000000 load(3)
+#:000000000000000 load(3): [LoadedLogs][3]
 #:000000000000000 output(0)
 #<000000000000000 rc=0
 select --table LoadedLogs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20190318/852a2e00/attachment.html>


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