[Groonga-commit] droonga/fluent-plugin-droonga at 4d074b6 [master] Accept string type reducer correctly

Back to archive index

YUKI Hiroshi null+****@clear*****
Mon Feb 3 12:25:21 JST 2014


YUKI Hiroshi	2014-02-03 12:25:21 +0900 (Mon, 03 Feb 2014)

  New Revision: 4d074b61578ebbcc76407a3a24e7461054da0231
  https://github.com/droonga/fluent-plugin-droonga/commit/4d074b61578ebbcc76407a3a24e7461054da0231

  Message:
    Accept string type reducer correctly

  Modified files:
    lib/droonga/distributed_command_planner.rb

  Modified: lib/droonga/distributed_command_planner.rb (+1 -1)
===================================================================
--- lib/droonga/distributed_command_planner.rb    2014-02-03 12:24:14 +0900 (b811e9c)
+++ lib/droonga/distributed_command_planner.rb    2014-02-03 12:25:21 +0900 (44b016f)
@@ -48,7 +48,7 @@ module Droonga
       return unless params
       params.each do |name, reducer|
         gatherer = nil
-        if reducer[:gather]
+        if reducer.is_a?(Hash) && reducer[:gather]
           gatherer = reducer[:gather]
           reducer = reducer[:reduce]
         end
-------------- next part --------------
HTML����������������������������...
Download 



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