[Groonga-commit] droonga/fluent-plugin-droonga at 616b6a3 [master] Ignore missing "drop_elements" option

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Dec 4 19:42:37 JST 2013


YUKI Hiroshi	2013-12-04 19:42:37 +0900 (Wed, 04 Dec 2013)

  New Revision: 616b6a30ef5594fdb98604825f451af1d2478b9d
  https://github.com/droonga/fluent-plugin-droonga/commit/616b6a30ef5594fdb98604825f451af1d2478b9d

  Message:
    Ignore missing "drop_elements" option

  Modified files:
    lib/droonga/plugin/collector/basic.rb

  Modified: lib/droonga/plugin/collector/basic.rb (+4 -2)
===================================================================
--- lib/droonga/plugin/collector/basic.rb    2013-12-04 19:23:23 +0900 (b50646e)
+++ lib/droonga/plugin/collector/basic.rb    2013-12-04 19:42:37 +0900 (357bac8)
@@ -34,8 +34,10 @@ module Droonga
             case mapper["type"]
             when "count"
               result[element] = result[mapper["target"]].size
-              mapper["drop_elements"].each do |drop_element|
-                result.delete(drop_element)
+              if mapper["drop_elements"]
+                mapper["drop_elements"].each do |drop_element|
+                  result.delete(drop_element)
+                end
               end
             when "sort"
             end
-------------- next part --------------
HTML����������������������������...
Download 



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